mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-01-11 16:58:58 +01:00
Entrypoint cleanup routine
This commit is contained in:
parent
1da1fa0fed
commit
bfc7ca9bbe
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user