mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-07-30 18:00:31 +02:00
Merge branch 'alexbelgium:master' into master
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
### 4.6.2-19_wireguard_openvpn (14-12-2023)
|
### 4.6.2-20_wireguard_openvpn (14-12-2023)
|
||||||
- Minor bugs fixed
|
- Minor bugs fixed
|
||||||
|
- Sanitize the ovpn file
|
||||||
- Implement a sleep period to wait until vpn is up on faster systems
|
- Implement a sleep period to wait until vpn is up on faster systems
|
||||||
- qbit_manage : add run command
|
- qbit_manage : add run command
|
||||||
|
|
||||||
|
|||||||
@@ -153,5 +153,5 @@
|
|||||||
"slug": "qbittorrent",
|
"slug": "qbittorrent",
|
||||||
"udev": true,
|
"udev": true,
|
||||||
"url": "https://github.com/alexbelgium/hassio-addons",
|
"url": "https://github.com/alexbelgium/hassio-addons",
|
||||||
"version": "4.6.2-19_wireguard_openvpn"
|
"version": "4.6.2-20_wireguard_openvpn"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -32,6 +32,13 @@ if [[ "$(bashio::config "VPN_ENABLED")" == "yes" ]] && [[ "$(bashio::config "VPN
|
|||||||
# Correct paths
|
# Correct paths
|
||||||
sed -i "s=/etc/openvpn=/config/openvpn=g" "$file"
|
sed -i "s=/etc/openvpn=/config/openvpn=g" "$file"
|
||||||
|
|
||||||
|
# Check if the last character in the file is a newline character
|
||||||
|
last_char=$(tail -c 1 "$file")
|
||||||
|
if [ "$last_char" != $'\n' ]; then
|
||||||
|
# Add a blank line at the end of the file
|
||||||
|
echo >> "$file"
|
||||||
|
fi
|
||||||
|
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user