We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5c791fc commit d5efdfcCopy full SHA for d5efdfc
1 file changed
bin/ghe-restore
@@ -59,7 +59,9 @@ if [ "$GHE_VERSION_MAJOR" -gt 1 ] && [ "$GHE_REMOTE_DATA_DIR" = /data ]; then
59
export GHE_REMOTE_METADATA_FILE=/data/enterprise/chef_metadata.json
60
fi
61
62
-if ! ghe-ssh "$host" -- "test -f $GHE_REMOTE_LICENSE_FILE"; then
+# Restore license file under versions >= 2.x. This is for automated restores of
63
+# newly provisioned VMs in internal GitHub test environments only currently.
64
+if [ "$GHE_VERSION_MAJOR" -gt 1 ] && ! ghe-ssh "$host" "test -f '$GHE_REMOTE_LICENSE_FILE'"; then
65
echo "Restoring license ..."
66
ghe-ssh "$host" -- 'ghe-import-license' < "$GHE_RESTORE_SNAPSHOT_PATH/enterprise.ghl" 1>&3
67
0 commit comments