small fixes in healthcheck and entrypoint script
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/tag Build is passing Details

This commit is contained in:
Robert Kaussow 2019-07-20 14:34:59 +02:00
parent 38fc80f338
commit 0f5296d027
4 changed files with 11 additions and 1 deletions

View File

@ -0,0 +1,4 @@
#!/bin/sh
set -e
echo "Container crashed. Exiting..."
exit 1

2
overlay/etc/services.d/.s6-svscan/finish Normal file → Executable file
View File

@ -1,2 +1,2 @@
#!/bin/sh
/bin/true
exit 0

View File

@ -2,6 +2,11 @@
/usr/local/bin/gomplate -V -o /etc/php7/php.ini -f /etc/templates/php.ini.tmpl
/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/lock/images
mkdir -p /var/www/app/lock/upload
mkdir -p /var/www/app/lockexport
chown -R nginx:nginx /var/www/app/lock
chown -R nginx:nginx /var/www/app/cache
chown -R nginx:nginx /var/www/app/feed-icons

View File

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