We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2157db1 commit e256619Copy full SHA for e256619
1 file changed
libexec/ghe-maintenance-mode-enable
@@ -53,6 +53,12 @@ $wait_procs || exit 0
53
ghe-ssh "$host" -- /bin/sh <<EOF
54
set -e
55
56
+ # no license file means a fresh VM and no procs to wait on.
57
+ # bail out in this case.
58
+ if [ ! -f "$GHE_REMOTE_LICENSE_FILE" ]; then
59
+ exit 0
60
+ fi
61
+
62
# determine local admin auth token
63
token=\$(md5sum "$GHE_REMOTE_LICENSE_FILE" | cut -f 1 -d ' ')
64
0 commit comments