Files
hottub/entrypoint.sh
T
jblu b539441aea
ci / docker (push) Successful in 29s
updated grep command
2026-04-10 15:17:31 -05:00

9 lines
448 B
Bash

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