File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
share/github-backup-utils Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -117,9 +117,6 @@ echo "$GHE_SNAPSHOT_TIMESTAMP $$" > ../in-progress
117
117
118
118
echo " Starting backup of $GHE_HOSTNAME in snapshot $GHE_SNAPSHOT_TIMESTAMP "
119
119
120
- # Warn if git is not installed, and set GHE_DISABLE_SSH_MUX=true
121
- command -v git > /dev/null 2>&1 || echo " Warning: SSH multiplexing requires git but it's not installed." && export GHE_DISABLE_SSH_MUX=true
122
-
123
120
# Perform a host connection check and establish the remote appliance version.
124
121
# The version is available in the GHE_REMOTE_VERSION variable and also written
125
122
# to a version file in the snapshot directory itself.
Original file line number Diff line number Diff line change @@ -62,6 +62,11 @@ if echo "$*" | grep "[|;]" >/dev/null || [ $(echo "$*" | wc -l) -gt 1 ]; then
62
62
exit 1
63
63
fi
64
64
65
+ # Warn if git is not installed, and set GHE_DISABLE_SSH_MUX=true
66
+ if [ -z " $GHE_DISABLE_SSH_MUX " ]; then
67
+ command -v git > /dev/null 2>&1 || echo " Warning: SSH multiplexing requires git but it's not installed." && export GHE_DISABLE_SSH_MUX=true
68
+ fi
69
+
65
70
if [ -z " $GHE_DISABLE_SSH_MUX " ]; then
66
71
controlpath=" $TMPDIR /.ghe-sshmux-$( echo -n " $user @$host :$port " | git hash-object --stdin | cut -c 1-8) "
67
72
opts=" -o ControlMaster=auto -o ControlPath=\" $controlpath \" -o ControlPersist=10m -o ServerAliveInterval=10 $opts "
You can’t perform that action at this time.
0 commit comments