mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-30 20:34:04 +02:00
Update 00-openvpn.sh
This commit is contained in:
@@ -19,6 +19,9 @@ if [[ "$(bashio::config "VPN_ENABLED")" == "yes" ]] && [[ "$(bashio::config "VPN
|
|||||||
for file in /config/openvpn/*.ovpn; do
|
for file in /config/openvpn/*.ovpn; do
|
||||||
if [ -f "$file" ]; then
|
if [ -f "$file" ]; then
|
||||||
|
|
||||||
|
# Convert to unix
|
||||||
|
dos2unix "$file"
|
||||||
|
|
||||||
# Remove route-nopull
|
# Remove route-nopull
|
||||||
if grep -q route-nopull "$file"; then
|
if grep -q route-nopull "$file"; then
|
||||||
echo "... removing route-nopull from $file"
|
echo "... removing route-nopull from $file"
|
||||||
|
|||||||
Reference in New Issue
Block a user