Remove trap

This commit is contained in:
Alexandre
2024-12-05 14:19:56 +01:00
committed by GitHub
parent 1febea55b0
commit 02f157500c

View File

@@ -34,22 +34,11 @@ cd /config || true
bashio::log.info "Starting the app" bashio::log.info "Starting the app"
function shutdown_postgres {
echo "Received SIGTERM/SIGINT, shutting down PostgreSQL..."
gosu postgres pg_ctl -D "$PGDATA" -m fast stop
exit 0
}
trap 'shutdown_postgres' SIGTERM SIGINT
# Start background tasks # Start background tasks
if [ "$(bashio::info.arch)" != "armv7" ]; then if [ "$(bashio::info.arch)" != "armv7" ]; then
/./docker-entrypoint-initdb.d/10-vector.sh & true /./docker-entrypoint-initdb.d/10-vector.sh & true
docker-entrypoint.sh postgres -c shared_preload_libraries=vectors.so & true docker-entrypoint.sh postgres -c shared_preload_libraries=vectors.so & true
else else
bashio::log.warning "ARMv7 detected: Starting without vectors.so" bashio::log.warning "ARMv7 detected: Starting without vectors.so"
docker-entrypoint.sh postgres & true docker-entrypoint.sh postgres & true
fi fi
while :; do sleep infinity & wait $!; done