From ac3b06424fc2dbad3a652b5027049bf80cbcb729 Mon Sep 17 00:00:00 2001 From: jblu Date: Fri, 10 Apr 2026 14:45:52 -0500 Subject: [PATCH] possible solution for crontab --- entrypoint.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index cc8e42a..213895b 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -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 -qxF 'echo Come in the water is fine!' $CRON_CONFIG_FILE || echo "${CRON} echo Come in the water is fine! > /opt/output.log" >> $CRON_CONFIG_FILE +grep -qxF 'echo Turn on the bubbles!' $CRON_CONFIG_FILE || echo "${CRON} echo Turn on the bubbles!" >> $CRON_CONFIG_FILE +grep -qxF '@reboot echo Come in the water is fine! > /opt/reboot.log' $CRON_CONFIG_FILE || echo "@reboot echo Come in the water is fine! > /opt/reboot.log" >> $CRON_CONFIG_FILE exec crond -f \ No newline at end of file