Skip to content

Commit 990b5ef

Browse files
authored
Merge pull request #181 from github/dhadka/actions-fix-logins
Repair database logins after restore
2 parents d96eae9 + fd13034 commit 990b5ef

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

share/github-backup-utils/ghe-restore-actions

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,4 +69,11 @@ restore-secret "Actions secondary encryption cert thumbprint" "actions-secondary
6969
restore-secret "Actions service principal cert" "actions-service-principal-cert" "secrets.actions.ServicePrincipalCertificate"
7070
restore-secret "Actions SPS validation cert thumbprint" "actions-sps-validation-cert-thumbprint" "secrets.actions.SpsValidationCertThumbprint"
7171

72+
# Setup the database logins.
73+
ghe_verbose "* Restoring database logins and users to $host ..."
74+
75+
ghe-ssh -p "$port" "$host" -- ghe-actions-console -s mps -c "Repair-DatabaseLogins"
76+
ghe-ssh -p "$port" "$host" -- ghe-actions-console -s token -c "Repair-DatabaseLogins"
77+
ghe-ssh -p "$port" "$host" -- ghe-actions-console -s actions -c "Repair-DatabaseLogins"
78+
7279
bm_end "$(basename $0)"

test/bin/ghe-actions-console

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ghe-fake-true

0 commit comments

Comments
 (0)