mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-03 22:34:11 +02:00
Update 93-openvpn.sh
This commit is contained in:
@@ -56,7 +56,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" =~ \.txt ]] || [[ "$line" =~ \.crt ]] || [[ "$line" == "auth-user-pass"* ]]; then
|
if [[ ! $line =~ ^"#" ]] && [[ ! $line =~ ^";" ]] && [[ "$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}')"
|
||||||
# Check if the txt file exists
|
# Check if the txt file exists
|
||||||
|
|||||||
Reference in New Issue
Block a user