Rename unpackerr/rootfs/90-vpn.sh to unpackerr/rootfs/etc/cont-init.d/90-vpn.sh

This commit is contained in:
Alexandre
2024-03-13 11:29:54 +01:00
committed by GitHub
parent 7af59f7e8e
commit f22ff24881

View File

@@ -0,0 +1,27 @@
#!/usr/bin/with-contenv bashio
# shellcheck shell=bash
set +e
VPN_PROVIDER="${VPN_PROVIDER:-null}"
case "$VPN_PROVIDER" in
"generic")
echo "" > etc/s6*/s6*/service-pia/run
echo "" > /etc/s6*/s6*/service-proton/run
;;
"pia")
echo "" > /etc/s6*/s6*/service-privoxy/run
echo "" > /etc/s6*/s6*/service-proton/run
;;
"proton")
echo "" > /etc/s6*/s6*/service-privoxy/run
echo "" > /etc/s6*/s6*/service-pia/run
;;
**)
echo "" > /etc/s6*/s6*/service-privoxy/run
echo "" > /etc/s6*/s6*/service-proton/run
echo "" > /etc/s6*/s6*/service-pia/run
;;
esac