Update 93-openvpn.sh

This commit is contained in:
Alexandre
2024-01-09 11:10:53 +01:00
committed by GitHub
parent ad8da5b9c7
commit 3f091ce00e

View File

@@ -52,7 +52,7 @@ if bashio::config.true 'openvpn_enabled'; then
# Check if the txt file exists in the /config/openvpn/ directory
if [ -f "/config/openvpn/${file_name##*/}" ]; then
# Append /config/openvpn/ in front of the original txt file in the ovpn file
sed -i "s|$file_name|/config/openvpn/${file_name##*/}|g" "$file"
sed -i "${line_number}s|$file_name|/config/openvpn/${file_name##*/}|" "$file"
# Print a success message
bashio::log.warning "Appended /config/openvpn/ to ${file_name##*/} in $file"
else