mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-30 19:26:07 +02:00
Update 93-openvpn.sh
This commit is contained in:
@@ -71,6 +71,7 @@ if bashio::config.true 'openvpn_enabled'; then
|
|||||||
|
|
||||||
# Correct paths
|
# Correct paths
|
||||||
sed -i "s=/etc/openvpn=/config/openvpn=g" "$file"
|
sed -i "s=/etc/openvpn=/config/openvpn=g" "$file"
|
||||||
|
sed -i "s=/config/openvpn/credentials=/etc/openvpn/credentials=g" "$file"
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -148,7 +149,7 @@ if bashio::config.true 'openvpn_enabled'; then
|
|||||||
sed -i '/^auth-user-pass/s/^/#/' /config/openvpn/"$openvpn_config"
|
sed -i '/^auth-user-pass/s/^/#/' /config/openvpn/"$openvpn_config"
|
||||||
# No credentials specified, using addons username and password
|
# No credentials specified, using addons username and password
|
||||||
echo "# Please do not remove the line below, it allows using the addon username and password" >> /config/openvpn/"$openvpn_config"
|
echo "# Please do not remove the line below, it allows using the addon username and password" >> /config/openvpn/"$openvpn_config"
|
||||||
echo "auth-user-pass /etc/openvpn/credentials" >> /config/openvpn/"$openvpn_config"
|
echo "auth-user-pass /etc/openvpn/credentials" >> /etc/openvpn/"$openvpn_config"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
# Standardize just to be sure
|
# Standardize just to be sure
|
||||||
|
|||||||
Reference in New Issue
Block a user