gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-merchant] branch master updated: improve taler-merchant-dbconfig:


From: gnunet
Subject: [taler-merchant] branch master updated: improve taler-merchant-dbconfig: more error handling
Date: Tue, 05 Dec 2023 14:34:09 +0100

This is an automated email from the git hooks/post-receive script.

grothoff pushed a commit to branch master
in repository merchant.

The following commit(s) were added to refs/heads/master by this push:
     new 8c209a0c improve taler-merchant-dbconfig: more error handling
8c209a0c is described below

commit 8c209a0c22aff2132715d10ee75ef592c7f91a95
Author: Christian Grothoff <grothoff@gnunet.org>
AuthorDate: Tue Dec 5 22:34:02 2023 +0900

    improve taler-merchant-dbconfig: more error handling
---
 contrib/taler-merchant-dbconfig | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/contrib/taler-merchant-dbconfig b/contrib/taler-merchant-dbconfig
index 372b7e57..35636702 100755
--- a/contrib/taler-merchant-dbconfig
+++ b/contrib/taler-merchant-dbconfig
@@ -70,7 +70,9 @@ then
     if ! taler-merchant-dbinit -v 2> /dev/null
     then
         echo "Required 'taler-merchant-dbinit' not found. Please fix your 
installation."
+        exit 1
     fi
+    DBINIT=$(which taler-merchant-dbinit)
 fi
 
 if ! id "$DBUSER" > /dev/null
@@ -134,7 +136,7 @@ fi
 if [ 0 = "$SKIP_DBINIT" ]
 then
     echo "Initializing database $DBNAME." 1>&2
-    if ! sudo -u "$DBUSER" taler-merchant-dbinit -c "$CFGFILE"
+    if ! sudo -u "$DBUSER" "$DBINIT" -c "$CFGFILE"
     then
         echo "Failed to initialize database schema"
         exit 1

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]