Compare commits
13 Commits
e1760f73b5
..
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 1a69d0f730 | |||
| 1603453aa7 | |||
| ca453b90b4 | |||
| b539441aea | |||
| be930f67fd | |||
| ac3b06424f | |||
| 5c0d5bc1cc | |||
| e83151f74f | |||
| 56a887c0fb | |||
| e929d68f3f | |||
| 564264dbbe | |||
| 1d87e47295 | |||
| 47fff33a0d |
@@ -1,5 +1,4 @@
|
||||
.gitignore
|
||||
LICENSE
|
||||
README.md
|
||||
.drone.yml
|
||||
Dockerfile
|
||||
+1
-2
@@ -1,5 +1,4 @@
|
||||
FROM alpine:latest
|
||||
COPY . opt
|
||||
RUN apk add --no-cache cronie
|
||||
COPY entrypoint.sh /opt
|
||||
RUN chmod +x /opt/entrypoint.sh
|
||||
CMD ["/opt/entrypoint.sh"]
|
||||
+5
-1
@@ -2,4 +2,8 @@
|
||||
|
||||
CRON_CONFIG_FILE="/etc/crontabs/root"
|
||||
|
||||
echo "${CRON} echo "Come in the water is fine!" > /opt/output.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