Create 90-vpn.sh

This commit is contained in:
Alexandre
2024-03-13 10:32:30 +01:00
committed by GitHub
parent f4772792f2
commit eba56af63d

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")
rm -r /etc/s6*/s6*/service-pia
rm -r /etc/s6*/s6*/service-proton
;;
"pia")
rm -r /etc/s6*/s6*/service-privoxy
rm -r /etc/s6*/s6*/service-proton
;;
"proton")
rm -r /etc/s6*/s6*/service-privoxy
rm -r /etc/s6*/s6*/service-pia
;;
**)
rm -r /etc/s6*/s6*/service-privoxy
rm -r /etc/s6*/s6*/service-proton
rm -r /etc/s6*/s6*/service-pia
;;
esac