mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-30 03:06:06 +02:00
Update 01-openvpn.sh
This commit is contained in:
@@ -10,7 +10,7 @@ if [[ "$(bashio::config "VPN_ENABLED")" == "yes" ]] && [[ "$(bashio::config "VPN
|
|||||||
|
|
||||||
# If there is a config file, add nopull
|
# If there is a config file, add nopull
|
||||||
if [ -n "$(ls -A /config/openvpn 2>/dev/null)" ]; then
|
if [ -n "$(ls -A /config/openvpn 2>/dev/null)" ]; then
|
||||||
for file in /config/openvpn/*; do
|
for file in /config/openvpn/*.ovpn; do
|
||||||
if [ -f "$file" ]; then
|
if [ -f "$file" ]; then
|
||||||
if ! grep -q route-nopull "$file"; then
|
if ! grep -q route-nopull "$file"; then
|
||||||
echo "... adding route-nopull to $file"
|
echo "... adding route-nopull to $file"
|
||||||
|
|||||||
Reference in New Issue
Block a user