join arguments in ssh command

This commit is contained in:
Jérémy Lecour 2020-05-01 10:31:46 +02:00 committed by Jérémy Lecour
parent 8ed06511d9
commit 8311e33c76

View file

@ -34,9 +34,9 @@ rsync -a "${CONFDIR}/${jail_name}" "${NODE}:${CONFDIR}/${jail_name}"
# Sync state on remote server
if "${LIBDIR}/bkctld-is-on" "${jail_name}"; then
ssh "${NODE}" "${LIBDIR}/bkctld-start" "${jail_name}" | debug
ssh "${NODE}" "${LIBDIR}/bkctld-start ${jail_name}" | debug
else
ssh "${NODE}" "${LIBDIR}/bkctld-stop" "${jail_name}" | debug
ssh "${NODE}" "${LIBDIR}/bkctld-stop ${jail_name}" | debug
fi
if [ -n "${FIREWALL_RULES}" ]; then