Skip to content

Commit

Permalink
Merge pull request #34 from linuxserver/38-etc-cron
Browse files Browse the repository at this point in the history
Import crontabs from etc
  • Loading branch information
nemchik authored Nov 20, 2023
2 parents 1202db1 + 5e57fff commit a118c76
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions root/etc/s6-overlay/s6-rc.d/init-crontab-config/run
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
# shellcheck shell=bash

for cron_user in abc root; do
if [[ -f "/etc/crontabs/${cron_user}" ]]; then
lsiown "${cron_user}":"${cron_user}" "/etc/crontabs/${cron_user}"
crontab -u "${cron_user}" "/etc/crontabs/${cron_user}"
fi

if [[ -f "/defaults/crontabs/${cron_user}" ]]; then
# make folders
mkdir -p \
Expand Down

0 comments on commit a118c76

Please sign in to comment.