mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-20 22:39:14 +02:00
Update 93-openvpn.sh
This commit is contained in:
@@ -37,6 +37,7 @@ if bashio::config.true 'openvpn_enabled'; then
|
|||||||
((line_number++))
|
((line_number++))
|
||||||
# Extract the second argument
|
# Extract the second argument
|
||||||
file_name="$(echo "$line" | awk -F' ' '{print $2}')"
|
file_name="$(echo "$line" | awk -F' ' '{print $2}')"
|
||||||
|
# If second argument is null or -
|
||||||
if [ -z "$file_name" ] || [[ "$file_name" == -* ]]; then
|
if [ -z "$file_name" ] || [[ "$file_name" == -* ]]; then
|
||||||
# Comment out the line
|
# Comment out the line
|
||||||
sed -i "${line_number}s/^/# /" "$file"
|
sed -i "${line_number}s/^/# /" "$file"
|
||||||
|
|||||||
Reference in New Issue
Block a user