We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 218230d + 115c368 commit 8928f3cCopy full SHA for 8928f3c
root/etc/s6-overlay/s6-rc.d/svc-cron/run
@@ -1,8 +1,8 @@
1
#!/usr/bin/with-contenv bash
2
# shellcheck shell=bash
3
4
-if builtin command -v crontab >/dev/null 2>&1 && [[ -n "$(crontab -l -u abc)" || -n "$(crontab -l -u root)" ]]; then
5
- if builtin command -v busybox >/dev/null 2>&1 && [[ $(busybox) =~ [[:space:]](crond)([,]|$) ]]; then
+if builtin command -v crontab >/dev/null 2>&1 && [[ -n "$(crontab -l -u abc 2>/dev/null || true)" || -n "$(crontab -l -u root 2>/dev/null || true)" ]]; then
+ if builtin command -v busybox >/dev/null 2>&1 && [[ $(busybox || true) =~ [[:space:]](crond)([,]|$) ]]; then
6
exec busybox crond -f -S -l 5
7
elif [[ -f /usr/bin/apt ]] && [[ -f /usr/sbin/cron ]]; then
8
exec /usr/sbin/cron -f -L 5
0 commit comments