From: Jean-Marc Pigeon (Delson) Date: Wed, 18 Jun 2025 20:32:13 +0000 (-0400) Subject: Detecting the postgresql server beeing up and running while mkdb X-Git-Tag: tag-0.9~94 X-Git-Url: https://jmp-git.ovh.safe.ca/?a=commitdiff_plain;h=0e8e8e05f46a6205748546158fa1a5bb939168f6;p=jmp%2Fmailleur Detecting the postgresql server beeing up and running while mkdb --- 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