Corrected HEALTHY.status typo

This commit is contained in:
Giuseppe Nardiello 2023-01-20 12:04:19 +01:00
parent 81f5e3dc69
commit 96ca5bb74a
2 changed files with 2 additions and 2 deletions

View file

@ -42,6 +42,6 @@ RUN mkdir /backup && \
VOLUME ["/backup"]
HEALTHCHECK --interval=2s --retries=1800 \
CMD stat /HEALTLY.status || exit 1
CMD stat /HEALTHY.status || exit 1
ENTRYPOINT dockerize -wait tcp://${MYSQL_HOST}:${MYSQL_PORT} -timeout ${TIMEOUT} /run.sh

2
run.sh
View file

@ -14,7 +14,7 @@ elif [ -n "${INIT_RESTORE_LATEST}" ]; then
find /backup -maxdepth 1 -name '*.sql.gz' | tail -1 | xargs /restore.sh
fi
touch /HEALTLY.status
touch /.status
echo "${CRON_TIME} /backup.sh >> /mysql_backup.log 2>&1" > /tmp/crontab.conf
crontab /tmp/crontab.conf