mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-07-20 21:10:32 +02:00
Ensure config ends with a line feed
This commit is contained in:
@@ -59,6 +59,9 @@ if bashio::config.true 'openvpn_enabled'; then
|
|||||||
# Standardize lf
|
# Standardize lf
|
||||||
dos2unix "$file"
|
dos2unix "$file"
|
||||||
|
|
||||||
|
# Ensure config ends with a line feed
|
||||||
|
sed -i "\$q" "$file"
|
||||||
|
|
||||||
# Correct paths
|
# Correct paths
|
||||||
sed -i "s=/etc/openvpn=/config/openvpn=g" "$file"
|
sed -i "s=/etc/openvpn=/config/openvpn=g" "$file"
|
||||||
|
|
||||||
|
|||||||
@@ -111,6 +111,9 @@ function check_path () {
|
|||||||
|
|
||||||
rm /tmpfile
|
rm /tmpfile
|
||||||
|
|
||||||
|
# Ensure config ends with a line feed
|
||||||
|
sed -i "\$q" "$file"
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# Define custom file
|
# Define custom file
|
||||||
|
|||||||
Reference in New Issue
Block a user