example cron job script (#186)

* Create 25-add-cron-jobs

my suggestion for adding cron jobs on startup

* Update 25-add-cron-jobs
This commit is contained in:
Jason Hobbs 2021-07-03 00:32:57 -05:00 committed by GitHub
parent 87b9f7dac6
commit d09f89a327
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -0,0 +1,8 @@
#!/bin/sh
# store crontab files in /mnt/data/cronjobs/ (you will need to create this foler)
# this script will re-add them on startup
cp /mnt/data/cronjobs/* /etc/cron.d/
/etc/init.d/crond restart
exit 0