mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-10 09:51:02 +01:00
Create 90-vpn.sh
This commit is contained in:
27
unpackerr/rootfs/90-vpn.sh
Normal file
27
unpackerr/rootfs/90-vpn.sh
Normal 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
|
||||
Reference in New Issue
Block a user