mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-21 06:49:13 +02:00
Update 93-openvpn.sh
This commit is contained in:
@@ -65,11 +65,6 @@ if bashio::config.true 'openvpn_enabled'; then
|
|||||||
# Correct paths
|
# Correct paths
|
||||||
sed -i "s=/etc/openvpn=/config/openvpn=g" /etc/openvpn/config.ovpn
|
sed -i "s=/etc/openvpn=/config/openvpn=g" /etc/openvpn/config.ovpn
|
||||||
|
|
||||||
# Remove ipv6
|
|
||||||
if grep -q "ipv6" /etc/openvpn/config.ovpn; then
|
|
||||||
bashio::log.warning "ipv6 configured in the ovpn file but not compatible with the addon. You should remove it."
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Set credentials
|
# Set credentials
|
||||||
if bashio::config.has_value "openvpn_username"; then
|
if bashio::config.has_value "openvpn_username"; then
|
||||||
openvpn_username=$(bashio::config 'openvpn_username')
|
openvpn_username=$(bashio::config 'openvpn_username')
|
||||||
|
|||||||
Reference in New Issue
Block a user