From d1ece1c5f36f275d5d950bd2557ec43f79a80d14 Mon Sep 17 00:00:00 2001 From: Patrick Kishino Date: Thu, 11 Nov 2021 12:59:47 +0900 Subject: [PATCH] supported setting DISABLE_PORT_UPDATER to false previously DISABLE_PORT_UPDATER had to not exist..now it can also be set to false --- transmission/start.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/transmission/start.sh b/transmission/start.sh index 862259acca..3d27f98a80 100755 --- a/transmission/start.sh +++ b/transmission/start.sh @@ -83,7 +83,7 @@ echo "STARTING TRANSMISSION" exec su --preserve-environment ${RUN_AS} -s /bin/bash -c "/usr/bin/transmission-daemon -g ${TRANSMISSION_HOME} --logfile $LOGFILE" & # Configure port forwarding if applicable -if [[ -x /etc/openvpn/${OPENVPN_PROVIDER,,}/update-port.sh && -z $DISABLE_PORT_UPDATER ]]; then +if [[ -x /etc/openvpn/${OPENVPN_PROVIDER,,}/update-port.sh && (-z $DISABLE_PORT_UPDATER || "false" = "$DISABLE_PORT_UPDATER") ]]; then echo "Provider ${OPENVPN_PROVIDER^^} has a script for automatic port forwarding. Will run it now." echo "If you want to disable this, set environment variable DISABLE_PORT_UPDATER=true" exec /etc/openvpn/${OPENVPN_PROVIDER,,}/update-port.sh &