fix healthcheck and add cache dir setup
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing

This commit is contained in:
Robert Kaussow 2019-07-20 16:19:23 +02:00
parent 578e5d2296
commit 0471467e64
3 changed files with 4 additions and 6 deletions

View File

@ -11,9 +11,6 @@ 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,6 +9,7 @@ wget --quiet --tries=1 --spider ${URL}
CONTENT=$(wget --quiet -O - ${URL})
case "$CONTENT" in
*Exception*) exit 1 ;;
*alert-*alert-*SELF_URL_PATH*) exit 1 ;;
*alert-*SELF_URL_PATH*alert-*) exit 1 ;;
*SELF_URL_PATH*alert-*alert-*) exit 1 ;;
esac