Compare commits
6 Commits
5c0d5bc1cc
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 1a69d0f730 | |||
| 1603453aa7 | |||
| ca453b90b4 | |||
| b539441aea | |||
| be930f67fd | |||
| ac3b06424f |
+3
-3
@@ -2,8 +2,8 @@
|
||||
|
||||
CRON_CONFIG_FILE="/etc/crontabs/root"
|
||||
|
||||
echo "${CRON} echo Come in the water is fine! > /opt/output.log" >> $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 'echo Come in the water is fine!' $CRON_CONFIG_FILE || echo "${CRON} echo Come in the water is fine!" >> $CRON_CONFIG_FILE
|
||||
grep -qF 'echo Turn on the bubbles!' $CRON_CONFIG_FILE || echo "${CRON} echo Turn on the bubbles!" >> $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
|
||||
Reference in New Issue
Block a user