From 0e8e8e05f46a6205748546158fa1a5bb939168f6 Mon Sep 17 00:00:00 2001 From: "Jean-Marc Pigeon (Delson)" Date: Wed, 18 Jun 2025 16:32:13 -0400 Subject: [PATCH] Detecting the postgresql server beeing up and running while mkdb --- support/crdb.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/support/crdb.sh b/support/crdb.sh index cf406be..66388ac 100755 --- a/support/crdb.sh +++ b/support/crdb.sh @@ -28,6 +28,11 @@ case "$DB_TYPE" in ;; "POSTGRESQL" ) SQL="psql -q" + /etc/rc.d/init.d/postgresql status + if [ $? != 0 ] ; then + echo "Postgresql serveur NOT found up and running (exiting!)" + exit 1 + fi if [ ! -z "$DB_PORT" ] ; then SQLPORT="-p $DB_PORT" fi -- 2.47.3