Update start.sh

This commit is contained in:
MarkusMcNugen 2018-02-02 21:40:56 -05:00 committed by GitHub
parent f335929133
commit caf6e0698d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -139,13 +139,6 @@ if [[ $VPN_ENABLED == "yes" ]]; then
export STRICT_PORT_FORWARD="yes" export STRICT_PORT_FORWARD="yes"
fi fi
fi fi
export ENABLE_PRIVOXY=$(echo "${ENABLE_PRIVOXY}" | sed -e 's~^[ \t]*~~;s~[ \t]*$~~')
if [[ ! -z "${ENABLE_PRIVOXY}" ]]; then
echo "[info] ENABLE_PRIVOXY defined as '${ENABLE_PRIVOXY}'" | ts '%Y-%m-%d %H:%M:%.S'
else
echo "[warn] ENABLE_PRIVOXY not defined (via -e ENABLE_PRIVOXY), defaulting to 'no'" | ts '%Y-%m-%d %H:%M:%.S'
export ENABLE_PRIVOXY="no"
fi
elif [[ $VPN_ENABLED == "no" ]]; then elif [[ $VPN_ENABLED == "no" ]]; then
echo "[warn] !!IMPORTANT!! You have set the VPN to disabled, you will NOT be secure!" | ts '%Y-%m-%d %H:%M:%.S' echo "[warn] !!IMPORTANT!! You have set the VPN to disabled, you will NOT be secure!" | ts '%Y-%m-%d %H:%M:%.S'
fi fi