Files
hottub/entrypoint.sh
T
jblu ac3b06424f
ci / docker (push) Successful in 28s
possible solution for crontab
2026-04-10 14:45:52 -05:00

9 lines
513 B
Bash

#!/bin/sh
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 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