File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
share/github-backup-utils Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 44
44
45
45
# SSH to the appliance and run the remote maintenance mode enable command
46
46
echo " Enabling maintenance mode on $host ..."
47
- ghe-ssh " $host " -- " ghe-maintenance -s"
47
+ ghe-ssh " $host " -- " /usr/bin/env GHEBUVER=2 ghe-maintenance -s"
48
48
49
49
# Bail out early if --no-wait was given.
50
50
$wait_procs || exit 0
Original file line number Diff line number Diff line change @@ -28,10 +28,10 @@ if [ "$GHE_VERSION_MAJOR" -ge 2 ]; then
28
28
# work around issue importing settings with bad storage mode values
29
29
cat " $GHE_RESTORE_SNAPSHOT_PATH /settings.json" |
30
30
sed ' s/"storage_mode": "device"/"storage_mode": "rootfs"/' |
31
- ghe-ssh " $GHE_HOSTNAME " -- ' ghe-import-settings' 1>&3
31
+ ghe-ssh " $GHE_HOSTNAME " -- ' /usr/bin/env GHEBUVER=2 ghe-import-settings' 1>&3
32
32
else
33
33
cat " $GHE_RESTORE_SNAPSHOT_PATH /settings.json" |
34
- ghe-ssh " $GHE_HOSTNAME " -- ' ghe-import-settings' 1>&3
34
+ ghe-ssh " $GHE_HOSTNAME " -- ' /usr/bin/env GHEBUVER=2 ghe-import-settings' 1>&3
35
35
fi
36
36
37
37
# Bail out if we're restoring against a pre-2.x appliance. Everything below is
You can’t perform that action at this time.
0 commit comments