mirror of
https://github.com/TrezOne/docker-mods-uptime-kuma-timeout-fix.git
synced 2026-07-10 01:43:49 -04:00
add compatibility with cron changes
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/with-contenv bash
|
#!/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
|
rm -rf /etc/nginx/http.d/auto-proxy*.conf /config/nginx/proxy-confs/auto-proxy*.conf
|
||||||
|
|||||||
@@ -12,8 +12,7 @@ rm -rf /auto-proxy
|
|||||||
mkdir /auto-proxy
|
mkdir /auto-proxy
|
||||||
|
|
||||||
if ! grep -q "/app/auto-proxy.sh" /config/crontabs/root; then
|
if ! grep -q "/app/auto-proxy.sh" /config/crontabs/root; then
|
||||||
echo "* * * * * /app/auto-proxy.sh" >> /config/crontabs/root
|
echo "* * * * * /app/auto-proxy.sh" >> /etc/crontabs/root
|
||||||
cp /config/crontabs/root /etc/crontabs/root
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
/app/auto-proxy.sh
|
/app/auto-proxy.sh
|
||||||
|
|||||||
Reference in New Issue
Block a user