small fixes in healthcheck and entrypoint script
This commit is contained in:
parent
38fc80f338
commit
0f5296d027
4
overlay/etc/services.d/.s6-svscan/crash
Executable file
4
overlay/etc/services.d/.s6-svscan/crash
Executable 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
2
overlay/etc/services.d/.s6-svscan/finish
Normal file → Executable file
@ -1,2 +1,2 @@
|
||||
#!/bin/sh
|
||||
/bin/true
|
||||
exit 0
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user