Skip to content

Commit b230a80

Browse files
authored
Merge pull request #7 from scottfridwin/fix_healthcheck
Updated healthcheck to properly check for cron
2 parents 966ba9b + 68da620 commit b230a80

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@ COPY backup_incremental_base.sh /scripts/backup_incremental_base.sh
2020
COPY entrypoint.sh /entrypoint.sh
2121
RUN chmod +x /scripts/*.sh /entrypoint.sh
2222

23-
HEALTHCHECK --interval=1m --timeout=10s --start-period=1m --retries=3 CMD pgrep crond >/dev/null && [ -d /backups ] && [ -w /backups ]
23+
HEALTHCHECK --interval=1m --timeout=10s --start-period=1m --retries=3 CMD ps | grep -q '[c]rond' && [ -d /backups ] && [ -w /backups ]
2424

25-
ENTRYPOINT ["/entrypoint.sh"]
25+
ENTRYPOINT ["/entrypoint.sh"]

0 commit comments

Comments
 (0)