Skip to content

Commit

Permalink
supported setting DISABLE_PORT_UPDATER to false
Browse files Browse the repository at this point in the history
previously DISABLE_PORT_UPDATER had to not exist..now it can also be set to false
  • Loading branch information
pkishino authored Nov 11, 2021
1 parent 3358a6b commit d1ece1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion transmission/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 &
Expand Down

0 comments on commit d1ece1c

Please sign in to comment.