Skip to content

Commit f044bef

Browse files
committed
add compatibility with cron changes
1 parent 1337990 commit f044bef

File tree

2 files changed

+2
-3
lines changed
  • root/etc/s6-overlay/s6-rc.d/init-mod-swag-auto-proxy-setup

2 files changed

+2
-3
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/usr/bin/with-contenv bash
22

3-
sed -i '/\/app\/auto-proxy.sh/d' /config/crontabs/root
3+
sed -i '/\/app\/auto-proxy.sh/d' /etc/crontabs/root
44
rm -rf /etc/nginx/http.d/auto-proxy*.conf /config/nginx/proxy-confs/auto-proxy*.conf

root/etc/s6-overlay/s6-rc.d/init-mod-swag-auto-proxy-setup/run

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ rm -rf /auto-proxy
1212
mkdir /auto-proxy
1313

1414
if ! grep -q "/app/auto-proxy.sh" /config/crontabs/root; then
15-
echo "* * * * * /app/auto-proxy.sh" >> /config/crontabs/root
16-
cp /config/crontabs/root /etc/crontabs/root
15+
echo "* * * * * /app/auto-proxy.sh" >> /etc/crontabs/root
1716
fi
1817

1918
/app/auto-proxy.sh

0 commit comments

Comments
 (0)