unifios-utilities/on-boot-script/examples/udm-files/on_boot.d/25-add-cron-jobs.sh
Christian Neff feac1111d7
[on-boot-script] Improve example scripts (add-cron-jobs, add-root-ssh-key(s)) (#270)
* [on-boot-script] Improve add-cron-jobs example script

* Add .sh extension for consistency
* Small improvements to documentation

* [on-boot-script] Improve add-root-ssh-key(s) example script

* Complete rewrite of script
* Rename from "add-root-ssh-key" to "add-root-ssh-keys"
2021-11-28 21:06:20 -08:00

10 lines
212 B
Bash

#!/bin/sh
## Store crontab files in /mnt/data/cronjobs/ (you will need to create this folder).
## This script will re-add them on startup.
cp /mnt/data/cronjobs/* /etc/cron.d/
/etc/init.d/crond restart
exit 0