Skip to content

Commit b9f08c8

Browse files
committed
Import crontabs from etc
Signed-off-by: Eric Nemchik <[email protected]>
1 parent 8928f3c commit b9f08c8

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)