File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
share/github-backup-utils Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -25,15 +25,15 @@ ghe_remote_version_required "$GHE_HOSTNAME"
25
25
# Path to snapshot dir we're restoring from
26
26
GHE_RESTORE_SNAPSHOT_PATH=" $GHE_DATA_DIR /$GHE_RESTORE_SNAPSHOT "
27
27
28
+ echo " Restoring license ..."
29
+ ghe-ssh " $GHE_HOSTNAME " -- ' ghe-import-license' < " $GHE_RESTORE_SNAPSHOT_PATH /enterprise.ghl" 1>&3
30
+
28
31
echo " Restoring settings ..."
29
32
# work around issue importing settings with bad storage mode values
30
33
( cat " $GHE_RESTORE_SNAPSHOT_PATH /settings.json" && echo ) |
31
34
sed ' s/"storage_mode": "device"/"storage_mode": "rootfs"/' |
32
35
ghe-ssh " $GHE_HOSTNAME " -- ' /usr/bin/env GHEBUVER=2 ghe-import-settings' 1>&3
33
36
34
- echo " Restoring license ..."
35
- ghe-ssh " $GHE_HOSTNAME " -- ' ghe-import-license' < " $GHE_RESTORE_SNAPSHOT_PATH /enterprise.ghl" 1>&3
36
-
37
37
# Restore management console password hash if present.
38
38
if [ -f " $GHE_RESTORE_SNAPSHOT_PATH /manage-password" ]; then
39
39
echo " Restoring management console password ..."
You can’t perform that action at this time.
0 commit comments