Update start.sh

This commit is contained in:
MarkusMcNugen 2018-02-02 16:49:02 -05:00 committed by GitHub
parent 753fb6eb83
commit 79a5d0769d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18,9 +18,9 @@ if [ "${OPENVPN_USERNAME}" = "**None**" ] || [ "${OPENVPN_PASSWORD}" = "**None**
else
echo "Setting OPENVPN credentials..."
mkdir -p /config
echo $OPENVPN_USERNAME > /config/openvpn-credentials.txt
echo $OPENVPN_PASSWORD >> /config/openvpn-credentials.txt
chmod 600 /config/openvpn-credentials.txt
echo $OPENVPN_USERNAME > /config/openvpn/credentials.conf
echo $OPENVPN_PASSWORD >> /config/openvpn/credentials.conf
chmod 775 /config/openvpn/credentials.conf
fi
exec openvpn --config "$VPN_CONFIG"