mirror of
https://github.com/linuxserver/docker-diskover.git
synced 2026-02-04 13:04:06 +08:00
standard cron
Signed-off-by: Eric Nemchik <eric@nemchik.com>
This commit is contained in:
parent
178bdbcbae
commit
bb6d8bed4f
2
root/defaults/crontabs/abc
Normal file
2
root/defaults/crontabs/abc
Normal file
@ -0,0 +1,2 @@
|
||||
# min hour day month weekday command
|
||||
#0 3 * * * python3 /app/diskover/diskover.py -i diskover-my_index_name /data 2>&1
|
||||
@ -1 +0,0 @@
|
||||
#0 3 * * * python3 /app/diskover/diskover.py -i diskover-my_index_name /data
|
||||
2
root/etc/s6-overlay/s6-rc.d/init-crontabs-config/run → root/etc/s6-overlay/s6-rc.d/init-crontab-config/run
Executable file → Normal file
2
root/etc/s6-overlay/s6-rc.d/init-crontabs-config/run → root/etc/s6-overlay/s6-rc.d/init-crontab-config/run
Executable file → Normal file
@ -15,7 +15,7 @@ if [[ ! -f /config/crontabs/abc ]]; then
|
||||
|
||||
# if crontabs still do not exist in config (were not copied from system)
|
||||
# copy crontab from included defaults (using -n, do not overwrite an existing file)
|
||||
cp -n /etc/crontabs/abc /config/crontabs/
|
||||
cp -n /defaults/crontabs/abc /config/crontabs/
|
||||
fi
|
||||
|
||||
# set permissions and import user crontabs
|
||||
1
root/etc/s6-overlay/s6-rc.d/init-crontab-config/up
Normal file
1
root/etc/s6-overlay/s6-rc.d/init-crontab-config/up
Normal file
@ -0,0 +1 @@
|
||||
/etc/s6-overlay/s6-rc.d/init-crontab-config/run
|
||||
@ -1 +0,0 @@
|
||||
/etc/s6-overlay/s6-rc.d/init-crontabs-config/run
|
||||
Loading…
x
Reference in New Issue
Block a user