mirror of
https://github.com/aljazceru/addons.git
synced 2025-12-17 05:04:21 +01:00
Avoid propagation of error status on clean shutdown (#2062)
This commit is contained in:
@@ -126,6 +126,8 @@ fi
|
|||||||
function stop_mariadb() {
|
function stop_mariadb() {
|
||||||
bashio::services.delete "mysql"
|
bashio::services.delete "mysql"
|
||||||
mysqladmin shutdown
|
mysqladmin shutdown
|
||||||
|
# Successful exit, avoid wait exit status to propagate
|
||||||
|
exit 0
|
||||||
}
|
}
|
||||||
trap "stop_mariadb" SIGTERM SIGHUP
|
trap "stop_mariadb" SIGTERM SIGHUP
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user