Merge pull request 'dev-fix-crontab-functionality' (#2) from dev-fix-crontab-functionality into main
ci / docker (push) Successful in 28s
ci / docker (push) Successful in 28s
Reviewed-on: #2
This commit was merged in pull request #2.
This commit is contained in:
+3
-3
@@ -2,8 +2,8 @@
|
|||||||
|
|
||||||
CRON_CONFIG_FILE="/etc/crontabs/root"
|
CRON_CONFIG_FILE="/etc/crontabs/root"
|
||||||
|
|
||||||
echo "${CRON} echo Come in the water is fine! > /opt/output.log" >> $CRON_CONFIG_FILE
|
grep -qF 'echo Come in the water is fine!' $CRON_CONFIG_FILE || echo "${CRON} echo Come in the water is fine!" >> $CRON_CONFIG_FILE
|
||||||
echo "${CRON} echo Turn on the bubbles!" >> $CRON_CONFIG_FILE
|
grep -qF 'echo Turn on the bubbles!' $CRON_CONFIG_FILE || echo "${CRON} echo Turn on the bubbles!" >> $CRON_CONFIG_FILE
|
||||||
echo "@reboot echo Come in the water is fine! > /opt/reboot.log" >> $CRON_CONFIG_FILE
|
grep -qF '@reboot' $CRON_CONFIG_FILE || echo "@reboot echo Let\'s get in the water again!" >> $CRON_CONFIG_FILE
|
||||||
|
|
||||||
exec crond -f
|
exec crond -f
|
||||||
Reference in New Issue
Block a user