File tree Expand file tree Collapse file tree
share/github-backup-utils Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4444
4545# SSH to the appliance and run the remote maintenance mode enable command
4646echo " Enabling maintenance mode on $host ..."
47- ghe-ssh " $host " -- " ghe-maintenance -s"
47+ ghe-ssh " $host " -- " /usr/bin/env GHEBUVER=2 ghe-maintenance -s"
4848
4949# Bail out early if --no-wait was given.
5050$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
2828 # work around issue importing settings with bad storage mode values
2929 cat " $GHE_RESTORE_SNAPSHOT_PATH /settings.json" |
3030 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
3232else
3333 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
3535fi
3636
3737# 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