From f044bef4aaef7879e6791e57c150797e41f50243 Mon Sep 17 00:00:00 2001 From: aptalca <541623+aptalca@users.noreply.github.com> Date: Mon, 30 Oct 2023 17:29:57 -0400 Subject: [PATCH] add compatibility with cron changes --- .../s6-overlay/s6-rc.d/init-mod-swag-auto-proxy-setup/finish | 2 +- root/etc/s6-overlay/s6-rc.d/init-mod-swag-auto-proxy-setup/run | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/root/etc/s6-overlay/s6-rc.d/init-mod-swag-auto-proxy-setup/finish b/root/etc/s6-overlay/s6-rc.d/init-mod-swag-auto-proxy-setup/finish index 5d76736..df84fd1 100755 --- a/root/etc/s6-overlay/s6-rc.d/init-mod-swag-auto-proxy-setup/finish +++ b/root/etc/s6-overlay/s6-rc.d/init-mod-swag-auto-proxy-setup/finish @@ -1,4 +1,4 @@ #!/usr/bin/with-contenv bash -sed -i '/\/app\/auto-proxy.sh/d' /config/crontabs/root +sed -i '/\/app\/auto-proxy.sh/d' /etc/crontabs/root rm -rf /etc/nginx/http.d/auto-proxy*.conf /config/nginx/proxy-confs/auto-proxy*.conf diff --git a/root/etc/s6-overlay/s6-rc.d/init-mod-swag-auto-proxy-setup/run b/root/etc/s6-overlay/s6-rc.d/init-mod-swag-auto-proxy-setup/run index 2ca9911..19e71a2 100755 --- a/root/etc/s6-overlay/s6-rc.d/init-mod-swag-auto-proxy-setup/run +++ b/root/etc/s6-overlay/s6-rc.d/init-mod-swag-auto-proxy-setup/run @@ -12,8 +12,7 @@ rm -rf /auto-proxy mkdir /auto-proxy if ! grep -q "/app/auto-proxy.sh" /config/crontabs/root; then - echo "* * * * * /app/auto-proxy.sh" >> /config/crontabs/root - cp /config/crontabs/root /etc/crontabs/root + echo "* * * * * /app/auto-proxy.sh" >> /etc/crontabs/root fi /app/auto-proxy.sh