mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-08 00:25:55 +02:00
Update 99-run.sh
This commit is contained in:
@@ -32,14 +32,6 @@ chmod -R 777 "$CONFIG_HOME"
|
|||||||
# Launch App #
|
# Launch App #
|
||||||
##############
|
##############
|
||||||
|
|
||||||
# Function to handle SIGTERM
|
|
||||||
function shutdown_postgres {
|
|
||||||
echo "Received SIGTERM, shutting down PostgreSQL..."
|
|
||||||
gosu postgres pg_ctl -D "$PGDATA" -m fast stop
|
|
||||||
exit 0
|
|
||||||
}
|
|
||||||
trap 'shutdown_postgres' SIGTERM
|
|
||||||
|
|
||||||
# Go to folder
|
# Go to folder
|
||||||
cd /config || true
|
cd /config || true
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user