Skip to content

Commit

Permalink
Only attempt to cleanup Connect if script exists on instance
Browse files Browse the repository at this point in the history
  • Loading branch information
lildude authored Sep 8, 2021
1 parent 9e8ef4a commit 4d6ddb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/ghe-restore
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ else
ghe-restore-mysql "$GHE_HOSTNAME" 1>&3
# Clear GitHub Connect settings stored in the restored database
if ! $RESTORE_SETTINGS; then
ghe-ssh "$GHE_HOSTNAME" -- "/usr/local/share/enterprise/ghe-reset-gh-connect -y"
ghe-ssh "$GHE_HOSTNAME" -- "[ -x '/usr/local/share/enterprise/ghe-reset-gh-connect' ] && /usr/local/share/enterprise/ghe-reset-gh-connect -y"
fi
fi

Expand Down

0 comments on commit 4d6ddb4

Please sign in to comment.