From 55ae714822a726d6bec6357080311395fe8fd014 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Mon, 2 Dec 2024 20:38:27 +0100 Subject: [PATCH] Update 99-run.sh --- postgres/rootfs/etc/cont-init.d/99-run.sh | 8 -------- 1 file changed, 8 deletions(-) diff --git a/postgres/rootfs/etc/cont-init.d/99-run.sh b/postgres/rootfs/etc/cont-init.d/99-run.sh index 605ee88da..363db4a8d 100755 --- a/postgres/rootfs/etc/cont-init.d/99-run.sh +++ b/postgres/rootfs/etc/cont-init.d/99-run.sh @@ -32,14 +32,6 @@ chmod -R 777 "$CONFIG_HOME" # 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 cd /config || true