mirror of
https://github.com/aljazceru/addons.git
synced 2025-12-17 05:04:21 +01:00
Shutdown DB
This commit is contained in:
@@ -60,4 +60,10 @@ for (( i=0; i < "$RIGHTS"; i++ )); do
|
||||
mysql -e "GRANT $GRANT $DATABASE.* TO '$USERNAME'@'$HOST';" 2> /dev/null || true
|
||||
done
|
||||
|
||||
# Register stop
|
||||
function stop_mariadb() {
|
||||
mysqladmin shutdown
|
||||
}
|
||||
trap "stop_mariadb" SIGTERM SIGHUP
|
||||
|
||||
wait "$MARIADB_PID"
|
||||
|
||||
Reference in New Issue
Block a user