mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-07-16 19:10:32 +02:00
Ensure config ends with a line feed
This commit is contained in:
@@ -53,12 +53,15 @@ if bashio::config.true 'openvpn_enabled'; then
|
||||
fi
|
||||
fi
|
||||
done < /tmpfile
|
||||
|
||||
|
||||
rm /tmpfile
|
||||
|
||||
# Standardize lf
|
||||
dos2unix "$file"
|
||||
|
||||
|
||||
# Ensure config ends with a line feed
|
||||
sed -i "\$q" "$file"
|
||||
|
||||
# Correct paths
|
||||
sed -i "s=/etc/openvpn=/config/openvpn=g" "$file"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user