File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -119,6 +119,13 @@ ghe-ssh "$host" -- 'ghe-import-authorized-keys' < "$GHE_RESTORE_SNAPSHOT_PATH/au
119119echo " Restoring Elasticsearch indices ..."
120120ghe-restore-es-${GHE_BACKUP_STRATEGY} " $host " 1>&3
121121
122+ # Perform a config run after restoring against v2.x vms. This ensures DB
123+ # migrations are run and v1.x -> v2.x fs adjustments are made.
124+ if [ " $GHE_VERSION_MAJOR " -ge 2 ]; then
125+ echo " Configuring storage ..."
126+ ghe-ssh " $host " -- " sudo ghe-config-apply" 1>&3
127+ fi
128+
122129echo " Restoring SSH host keys ..."
123130ghe-ssh " $host " -- ' ghe-import-ssh-host-keys' < " $GHE_RESTORE_SNAPSHOT_PATH /ssh-host-keys.tar" 1>&3
124131
Original file line number Diff line number Diff line change 1+ #! /bin/sh
2+ # Usage: ghe-config-apply
3+ # Emulates the remote GitHub ghe-config-apply command. Tests use this
4+ # to assert that the command was executed.
5+ set -e
6+ echo " ghe-config-apply OK"
You can’t perform that action at this time.
0 commit comments