From eba56af63d7e8986f14e2c2d4afc9339922cfb63 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Wed, 13 Mar 2024 10:32:30 +0100 Subject: [PATCH] Create 90-vpn.sh --- unpackerr/rootfs/90-vpn.sh | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 unpackerr/rootfs/90-vpn.sh diff --git a/unpackerr/rootfs/90-vpn.sh b/unpackerr/rootfs/90-vpn.sh new file mode 100644 index 000000000..e3f3000c4 --- /dev/null +++ b/unpackerr/rootfs/90-vpn.sh @@ -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