From ac3b06424fc2dbad3a652b5027049bf80cbcb729 Mon Sep 17 00:00:00 2001 From: jblu Date: Fri, 10 Apr 2026 14:45:52 -0500 Subject: [PATCH 1/5] 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 From be930f67fd82715f6201d975d5139163b8d92004 Mon Sep 17 00:00:00 2001 From: jblu Date: Fri, 10 Apr 2026 15:10:25 -0500 Subject: [PATCH 2/5] changing functionality for cron --- entrypoint.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index 213895b..d1dd14d 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -2,8 +2,8 @@ CRON_CONFIG_FILE="/etc/crontabs/root" -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 Come in the water is fine!' $CRON_CONFIG_FILE || echo "${CRON} echo Come in the water is fine!" >> $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 +grep -qxF '@reboot echo Come in the water is fine!' $CRON_CONFIG_FILE || echo "@reboot echo Come in the water is fine!" >> $CRON_CONFIG_FILE exec crond -f \ No newline at end of file From b539441aea673e77e8c5e3785e597df6be19d206 Mon Sep 17 00:00:00 2001 From: jblu Date: Fri, 10 Apr 2026 15:17:31 -0500 Subject: [PATCH 3/5] updated grep command --- entrypoint.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index d1dd14d..c2a870b 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -2,8 +2,8 @@ CRON_CONFIG_FILE="/etc/crontabs/root" -grep -qxF 'echo Come in the water is fine!' $CRON_CONFIG_FILE || echo "${CRON} echo Come in the water is fine!" >> $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!' $CRON_CONFIG_FILE || echo "@reboot echo Come in the water is fine!" >> $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 'echo Come in the water is fine!' $CRON_CONFIG_FILE || echo "@reboot echo Come in the water is fine!" >> $CRON_CONFIG_FILE exec crond -f \ No newline at end of file From ca453b90b4e792fc4b5a0f9cc3d949d41704ef5c Mon Sep 17 00:00:00 2001 From: jblu Date: Fri, 10 Apr 2026 15:52:00 -0500 Subject: [PATCH 4/5] a --- entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index c2a870b..492e217 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -4,6 +4,6 @@ CRON_CONFIG_FILE="/etc/crontabs/root" 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 'echo Come in the water is fine!' $CRON_CONFIG_FILE || echo "@reboot echo Come in the water is fine!" >> $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 \ No newline at end of file From 1603453aa73db6ebf11a959df921251a4013fb5e Mon Sep 17 00:00:00 2001 From: jblu Date: Fri, 10 Apr 2026 15:58:19 -0500 Subject: [PATCH 5/5] b --- entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index 492e217..38adf6b 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -4,6 +4,6 @@ CRON_CONFIG_FILE="/etc/crontabs/root" 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 +grep -qF '@reboot' $CRON_CONFIG_FILE || echo "@reboot echo Let\'s get in the water again!" >> $CRON_CONFIG_FILE exec crond -f \ No newline at end of file