mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-07-14 18:10:33 +02:00
Update 93-openvpn.sh
This commit is contained in:
@@ -39,7 +39,7 @@ if bashio::config.true 'openvpn_enabled'; then
|
||||
# Extract the txt file name from the line
|
||||
file_name="$(echo "$line" | awk -F' ' '{print $2}')"
|
||||
# Check if the txt file exists
|
||||
if [ ! -f "$file_name" ]; then
|
||||
if [[ "$file_name" != *"/etc/openvpn/credentials"* ]] && [ ! -f "$file_name" ]; 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
|
||||
|
||||
Reference in New Issue
Block a user