Update 93-openvpn.sh

This commit is contained in:
Alexandre
2024-01-09 11:00:41 +01:00
committed by GitHub
parent 47aef03195
commit ad8da5b9c7

View File

@@ -37,6 +37,7 @@ if bashio::config.true 'openvpn_enabled'; then
((line_number++))
# Extract the second argument
file_name="$(echo "$line" | awk -F' ' '{print $2}')"
# If second argument is null or -
if [ -z "$file_name" ] || [[ "$file_name" == -* ]]; then
# Comment out the line
sed -i "${line_number}s/^/# /" "$file"