Skip to content

Commit 8928f3c

Browse files
authored
Merge pull request #7 from linuxserver/silent-cron
silent cron
2 parents 218230d + 115c368 commit 8928f3c

File tree

1 file changed

+2
-2
lines changed
  • root/etc/s6-overlay/s6-rc.d/svc-cron

1 file changed

+2
-2
lines changed

root/etc/s6-overlay/s6-rc.d/svc-cron/run

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#!/usr/bin/with-contenv bash
22
# shellcheck shell=bash
33

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
4+
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
5+
if builtin command -v busybox >/dev/null 2>&1 && [[ $(busybox || true) =~ [[:space:]](crond)([,]|$) ]]; then
66
exec busybox crond -f -S -l 5
77
elif [[ -f /usr/bin/apt ]] && [[ -f /usr/sbin/cron ]]; then
88
exec /usr/sbin/cron -f -L 5

0 commit comments

Comments
 (0)