mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-07-20 21:10:32 +02:00
Avoid remote
This commit is contained in:
@@ -1,3 +1,4 @@
|
|||||||
|
|
||||||
#!/usr/bin/with-contenv bashio
|
#!/usr/bin/with-contenv bashio
|
||||||
# shellcheck shell=bash
|
# shellcheck shell=bash
|
||||||
set -e
|
set -e
|
||||||
@@ -56,7 +57,7 @@ if bashio::config.true 'openvpn_enabled'; then
|
|||||||
|
|
||||||
# Check if the line contains a txt file
|
# Check if the line contains a txt file
|
||||||
#######################################
|
#######################################
|
||||||
if [[ ! $line =~ ^"#" ]] && [[ ! $line =~ ^";" ]] && [[ "$line" == *" "*"."* ]] || [[ "$line" == "auth-user-pass"* ]]; then
|
if [[ ! $line =~ ^"#" ]] && [[ ! $line =~ ^";" ]] && [[ ! $line =~ ^"remote" ]] && [[ "$line" == *" "*"."* ]] || [[ "$line" == "auth-user-pass"* ]]; then
|
||||||
# Extract the txt file name from the line
|
# Extract the txt file name from the line
|
||||||
file_name="$(echo "$line" | awk -F' ' '{print $2}')"
|
file_name="$(echo "$line" | awk -F' ' '{print $2}')"
|
||||||
# if contains only numbers and dots it is likely an ip, don't check it
|
# if contains only numbers and dots it is likely an ip, don't check it
|
||||||
|
|||||||
Reference in New Issue
Block a user