mirror of
https://github.com/MarkusMcNugen/docker-qBittorrentvpn
synced 2024-11-14 22:55:11 +00:00
Update start.sh
This commit is contained in:
parent
753fb6eb83
commit
79a5d0769d
@ -18,9 +18,9 @@ if [ "${OPENVPN_USERNAME}" = "**None**" ] || [ "${OPENVPN_PASSWORD}" = "**None**
|
|||||||
else
|
else
|
||||||
echo "Setting OPENVPN credentials..."
|
echo "Setting OPENVPN credentials..."
|
||||||
mkdir -p /config
|
mkdir -p /config
|
||||||
echo $OPENVPN_USERNAME > /config/openvpn-credentials.txt
|
echo $OPENVPN_USERNAME > /config/openvpn/credentials.conf
|
||||||
echo $OPENVPN_PASSWORD >> /config/openvpn-credentials.txt
|
echo $OPENVPN_PASSWORD >> /config/openvpn/credentials.conf
|
||||||
chmod 600 /config/openvpn-credentials.txt
|
chmod 775 /config/openvpn/credentials.conf
|
||||||
fi
|
fi
|
||||||
|
|
||||||
exec openvpn --config "$VPN_CONFIG"
|
exec openvpn --config "$VPN_CONFIG"
|
||||||
|
Loading…
Reference in New Issue
Block a user