Entrypoint cleanup routine

This commit is contained in:
Quentin McGaw (desktop) 2021-07-29 17:52:34 -04:00 committed by Quentin McGaw (laptop)
parent 1da1fa0fed
commit bfc7ca9bbe

View File

@ -1,5 +1,11 @@
#!/bin/bash
cleanup() {
set +e
echo "Stopping php7.3-fpm service..."
sudo service php7.3-fpm stop
}
trap cleanup 0
set -e
if [ "${DB_CONNECTION}" = "sqlite" ]; then
@ -25,4 +31,4 @@ else
fi
nginx
sudo service php7.3-fpm stop