Files
nextcloud/bin/healthcheck
T

12 lines
413 B
Bash
Raw Normal View History

2022-10-04 21:48:50 -04:00
#!/bin/sh
2022-10-11 16:08:24 -04:00
# Set bash options
[ -n "$DEBUG" ] && set -x
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
2022-10-04 21:48:50 -04:00
if [ "$SIDECAR_NEWSUPDATER" = "1" ]; then
pgrep -f "/usr/bin/nextcloud-news-updater -c /etc/news_updater.ini"
elif [ "$SIDECAR_CRON" = "1" ] || [ "$SIDECAR_PREVIEWGEN" = "1" ]; then
pgrep -f "busybox crond -f -L /dev/stdout"
else
2022-10-04 23:03:23 -04:00
curl --fail http://127.0.0.1:80/ping || exit 1
2022-10-04 21:48:50 -04:00
fi