Update 93-openvpn.sh

This commit is contained in:
Alexandre
2024-01-16 16:45:10 +01:00
committed by GitHub
parent 95daf08d76
commit 4731ce6360

View File

@@ -56,7 +56,7 @@ if bashio::config.true 'openvpn_enabled'; then
# 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
file_name="$(echo "$line" | awk -F' ' '{print $2}')"
# Check if the txt file exists