diff --git a/root/etc/s6-overlay/s6-rc.d/svc-wireguard/run b/root/etc/s6-overlay/s6-rc.d/svc-wireguard/run index 50dc0da..87b477e 100755 --- a/root/etc/s6-overlay/s6-rc.d/svc-wireguard/run +++ b/root/etc/s6-overlay/s6-rc.d/svc-wireguard/run @@ -22,7 +22,10 @@ fi unset FAILED for tunnel in ${WG_CONFS[@]}; do echo "**** Activating tunnel ${tunnel} ****" - wg-quick up "${tunnel}" || ( echo FAILED="${tunnel}" && break) + if ! wg-quick up "${tunnel}"; then + FAILED="${tunnel}" + break + fi done if [[ -z "${FAILED}" ]]; then