Skip to content

Commit 471f0b8

Browse files
committed
fixes config apply failure due to missing license file
1 parent c487d5a commit 471f0b8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,15 @@ ghe_remote_version_required "$GHE_HOSTNAME"
2525
# Path to snapshot dir we're restoring from
2626
GHE_RESTORE_SNAPSHOT_PATH="$GHE_DATA_DIR/$GHE_RESTORE_SNAPSHOT"
2727

28+
echo "Restoring license ..."
29+
ghe-ssh "$GHE_HOSTNAME" -- 'ghe-import-license' < "$GHE_RESTORE_SNAPSHOT_PATH/enterprise.ghl" 1>&3
30+
2831
echo "Restoring settings ..."
2932
# work around issue importing settings with bad storage mode values
3033
( cat "$GHE_RESTORE_SNAPSHOT_PATH/settings.json" && echo ) |
3134
sed 's/"storage_mode": "device"/"storage_mode": "rootfs"/' |
3235
ghe-ssh "$GHE_HOSTNAME" -- '/usr/bin/env GHEBUVER=2 ghe-import-settings' 1>&3
3336

34-
echo "Restoring license ..."
35-
ghe-ssh "$GHE_HOSTNAME" -- 'ghe-import-license' < "$GHE_RESTORE_SNAPSHOT_PATH/enterprise.ghl" 1>&3
36-
3737
# Restore management console password hash if present.
3838
if [ -f "$GHE_RESTORE_SNAPSHOT_PATH/manage-password" ]; then
3939
echo "Restoring management console password ..."

0 commit comments

Comments
 (0)