mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-06 15:45:56 +02:00
Avoid exec error
This commit is contained in:
@@ -5,23 +5,23 @@ set +e
|
|||||||
VPN_PROVIDER="${VPN_PROVIDER:-null}"
|
VPN_PROVIDER="${VPN_PROVIDER:-null}"
|
||||||
case "$VPN_PROVIDER" in
|
case "$VPN_PROVIDER" in
|
||||||
"generic")
|
"generic")
|
||||||
echo "" > etc/s6*/s6*/service-pia/run
|
sed -i "1a sleep infinity" etc/s6*/s6*/service-pia/run
|
||||||
echo "" > /etc/s6*/s6*/service-proton/run
|
sed -i "1a sleep infinity" etc/s6*/s6*/service-proton/run
|
||||||
;;
|
;;
|
||||||
|
|
||||||
"pia")
|
"pia")
|
||||||
echo "" > /etc/s6*/s6*/service-privoxy/run
|
sed -i "1a sleep infinity" /etc/s6*/s6*/service-privoxy/run
|
||||||
echo "" > /etc/s6*/s6*/service-proton/run
|
sed -i "1a sleep infinity" /etc/s6*/s6*/service-proton/run
|
||||||
;;
|
;;
|
||||||
|
|
||||||
"proton")
|
"proton")
|
||||||
echo "" > /etc/s6*/s6*/service-privoxy/run
|
sed -i "1a sleep infinity" /etc/s6*/s6*/service-privoxy/run
|
||||||
echo "" > /etc/s6*/s6*/service-pia/run
|
sed -i "1a sleep infinity" /etc/s6*/s6*/service-pia/run
|
||||||
;;
|
;;
|
||||||
|
|
||||||
**)
|
**)
|
||||||
echo "" > /etc/s6*/s6*/service-privoxy/run
|
sed -i "1a sleep infinity" /etc/s6*/s6*/service-privoxy/run
|
||||||
echo "" > /etc/s6*/s6*/service-proton/run
|
sed -i "1a sleep infinity" /etc/s6*/s6*/service-proton/run
|
||||||
echo "" > /etc/s6*/s6*/service-pia/run
|
sed -i "1a sleep infinity" /etc/s6*/s6*/service-pia/run
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|||||||
Reference in New Issue
Block a user