From 23f073e4600b455e1a9b9eed37025025f71c05fa Mon Sep 17 00:00:00 2001 From: Bram Date: Fri, 14 Aug 2026 19:50:49 +0200 Subject: [PATCH] ffs --- Dockers/gluetun-pia-wireguard-rotator/Dockerfile | 6 +++--- Dockers/gluetun-pia-wireguard-rotator/entrypoint.sh | 3 +++ 2 files changed, 6 insertions(+), 3 deletions(-) create mode 100644 Dockers/gluetun-pia-wireguard-rotator/entrypoint.sh diff --git a/Dockers/gluetun-pia-wireguard-rotator/Dockerfile b/Dockers/gluetun-pia-wireguard-rotator/Dockerfile index a7433e2..40c87e1 100644 --- a/Dockers/gluetun-pia-wireguard-rotator/Dockerfile +++ b/Dockers/gluetun-pia-wireguard-rotator/Dockerfile @@ -15,9 +15,9 @@ RUN apk add --no-cache bash ca-certificates tzdata python3 py3-pip \ ENV PATH="/opt/venv/bin:$PATH" COPY --from=builder /go/bin/pia-wg-config /usr/local/bin/pia-wg-config -COPY rotate.py entrypoint.py /usr/local/bin/ +COPY rotate.py entrypoint.py entrypoint.sh /usr/local/bin/ -RUN chmod +x /usr/local/bin/rotate.py /usr/local/bin/entrypoint.py +RUN chmod +x /usr/local/bin/rotate.py /usr/local/bin/entrypoint.py /usr/local/bin/entrypoint.sh ENV TZ=Europe/Brussels ENV WG_CONFIG_PATH=/config/wireguard/wg0.conf @@ -26,4 +26,4 @@ ENV GLUETUN_CONTAINER=m3u-filter-vpn ENV ROTATE_CRON="0 3 * * *" ENV REGION_SELECT=fastest -ENTRYPOINT ["/opt/venv/bin/python", "/usr/local/bin/entrypoint.py"] +ENTRYPOINT ["/usr/local/bin/entrypoint.sh"] diff --git a/Dockers/gluetun-pia-wireguard-rotator/entrypoint.sh b/Dockers/gluetun-pia-wireguard-rotator/entrypoint.sh new file mode 100644 index 0000000..5efa7b6 --- /dev/null +++ b/Dockers/gluetun-pia-wireguard-rotator/entrypoint.sh @@ -0,0 +1,3 @@ +#!/bin/sh +# Compat wrapper: older compose/Portainer configs still exec entrypoint.sh +exec /opt/venv/bin/python /usr/local/bin/entrypoint.py "$@"