debug healthcheck script
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Robert Kaussow 2019-07-20 15:56:15 +02:00
parent 155f935821
commit 578e5d2296
3 changed files with 8 additions and 4 deletions

View File

@ -11,6 +11,9 @@ services:
- plugins:/var/www/app/plugins.local
- icons:/var/www/app/feed-icons
- themes:/var/www/app/themes.local
tmpfs:
- /var/www/app/cache
- /var/www/app/lock
db:
image: postgres

View File

@ -3,9 +3,9 @@
/usr/local/bin/gomplate -V -o /var/www/app/config.php -f /etc/templates/config.php.tmpl
# ensure lock folders exists
mkdir -p /var/www/app/cache/images
mkdir -p /var/www/app/cache/upload
mkdir -p /var/www/app/cache/export
#mkdir -p /var/www/app/cache/images
#mkdir -p /var/www/app/cache/upload
#mkdir -p /var/www/app/cache/export
chown -R nginx:nginx /var/www/app/lock
chown -R nginx:nginx /var/www/app/cache

View File

@ -9,7 +9,8 @@ wget --quiet --tries=1 --spider ${URL}
CONTENT=$(wget --quiet -O - ${URL})
case "$CONTENT" in
*Exception*) exit 1 ;;
*misconfiguration*) exit 1 ;;
*alert-*SELF_URL_PATH*alert-*) exit 1 ;;
*SELF_URL_PATH*alert-*alert-*) exit 1 ;;
esac
exit 0