mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-10 09:35:58 +02:00
Merge branch 'qbittorrent_vpn_overhaul' of https://github.com/litinoveweedle/alexbelgium-hassio-addons into qbittorrent_vpn_overhaul
This commit is contained in:
@@ -91,7 +91,7 @@ sed -i '/^route/d' "${openvpn_runtime_config}"
|
||||
sed -i '/^auth-user-pass /d' "${openvpn_runtime_config}"
|
||||
sed -i '/^cd /d' "${openvpn_runtime_config}"
|
||||
sed -i '/^chroot /d' "${openvpn_runtime_config}"
|
||||
sed -i '\$q' "${openvpn_runtime_config}"
|
||||
sed -i '$q' "${openvpn_runtime_config}"
|
||||
|
||||
bashio::log.info 'Prepared OpenVPN runtime configuration for initial connection attempt.'
|
||||
|
||||
|
||||
@@ -347,7 +347,7 @@ _openvpn_up() {
|
||||
chmod 755 ${config["PostDownScript"]}
|
||||
|
||||
# Start OpenVPN in the background
|
||||
_cmd "/usr/sbin/openvpn
|
||||
_cmd "/usr/sbin/openvpn \
|
||||
--config "${config["ConfigFile"]}" \
|
||||
--script-security 2 --daemon --log /dev/null \
|
||||
--auth-user-pass "${OPENVPN_STATE_DIR}/credentials.conf" \
|
||||
|
||||
Reference in New Issue
Block a user