🦈🏠🐜 Initial Commit 🐜🦈🏠

This commit is contained in:
casjay
2022-10-04 21:48:50 -04:00
commit 4954dce9b1
26 changed files with 1066 additions and 0 deletions

10
bin/healthcheck Executable file
View File

@@ -0,0 +1,10 @@
#!/bin/sh
set -e
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
curl --fail http://127.0.0.1:12345/ping || exit 1
fi