Skip to content

Commit aa3a11e

Browse files
authored
Merge pull request #8 from linuxserver/master-etc-cron
Import crontabs from etc
2 parents 8928f3c + b9f08c8 commit aa3a11e

File tree

1 file changed

+5
-0
lines changed
  • root/etc/s6-overlay/s6-rc.d/init-crontab-config

1 file changed

+5
-0
lines changed

root/etc/s6-overlay/s6-rc.d/init-crontab-config/run

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
# shellcheck shell=bash
33

44
for cron_user in abc root; do
5+
if [[ -f "/etc/crontabs/${cron_user}" ]]; then
6+
lsiown "${cron_user}":"${cron_user}" "/etc/crontabs/${cron_user}"
7+
crontab -u "${cron_user}" "/etc/crontabs/${cron_user}"
8+
fi
9+
510
if [[ -f "/defaults/crontabs/${cron_user}" ]]; then
611
# make folders
712
mkdir -p \

0 commit comments

Comments
 (0)