Make first deployment race-safe
This commit is contained in:
@@ -64,7 +64,13 @@ wm_local_resolve_ssh() {
|
||||
esac
|
||||
|
||||
WM_SSH_TARGET="$WM_SSH_USER@$WM_SERVER_IPV4"
|
||||
WM_SSH_OPTIONS=(-o BatchMode=yes -o StrictHostKeyChecking=accept-new)
|
||||
WM_SSH_OPTIONS=(
|
||||
-o BatchMode=yes
|
||||
-o StrictHostKeyChecking=accept-new
|
||||
-o ServerAliveInterval=30
|
||||
-o ServerAliveCountMax=20
|
||||
-o TCPKeepAlive=yes
|
||||
)
|
||||
if [[ -n "$WM_SSH_IDENTITY" ]]; then
|
||||
WM_SSH_OPTIONS+=(-i "$WM_SSH_IDENTITY" -o IdentitiesOnly=yes)
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user