mirror of
https://github.com/MarkusMcNugen/docker-qBittorrentvpn
synced 2024-11-23 02:54:57 +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
|
||||
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"
|
||||
|
Loading…
Reference in New Issue
Block a user