debug healthcheck script
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
155f935821
commit
578e5d2296
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user