mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-06-24 22:12:06 +02:00
Entrypoint cleanup routine
This commit is contained in:
parent
1da1fa0fed
commit
bfc7ca9bbe
@ -1,5 +1,11 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
cleanup() {
|
||||||
|
set +e
|
||||||
|
echo "Stopping php7.3-fpm service..."
|
||||||
|
sudo service php7.3-fpm stop
|
||||||
|
}
|
||||||
|
trap cleanup 0
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
if [ "${DB_CONNECTION}" = "sqlite" ]; then
|
if [ "${DB_CONNECTION}" = "sqlite" ]; then
|
||||||
@ -25,4 +31,4 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
nginx
|
nginx
|
||||||
sudo service php7.3-fpm stop
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user