diff options
author | Christian Grothoff <christian@grothoff.org> | 2024-11-24 16:09:58 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2024-11-24 16:10:03 +0100 |
commit | 9b604e0b98a779a5e334e457bfd8f71deeb36b69 (patch) | |
tree | 1992fcc61765e596151ed1134acc7bfa0bec1701 /contrib | |
parent | f01f056ac7de3adacae0183a7b3b641715dc7663 (diff) |
fix dbconfig commands
Diffstat (limited to 'contrib')
-rwxr-xr-x | contrib/taler-merchant-dbconfig | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/contrib/taler-merchant-dbconfig b/contrib/taler-merchant-dbconfig index db9e38c4..4707fe40 100755 --- a/contrib/taler-merchant-dbconfig +++ b/contrib/taler-merchant-dbconfig @@ -22,7 +22,7 @@ set -eu RESET_DB=0 SKIP_DBINIT=0 DBUSER="taler-merchant-httpd" -CFGFILE="/etc/taler/taler.conf" +CFGFILE="/etc/taler-merchant/taler-merchant.conf" # Parse command-line options while getopts 'c:hrsu:' OPTION; do @@ -33,6 +33,7 @@ while getopts 'c:hrsu:' OPTION; do h) echo 'Supported options:' echo " -c FILENAME -- use configuration FILENAME (default: $CFGFILE)" + echo " -h -- print this help text" echo " -r -- reset database (dangerous)" echo " -s -- skip database initialization" echo " -u USER -- taler-merchant to be run by USER (default: $DBUSER)" @@ -48,7 +49,8 @@ while getopts 'c:hrsu:' OPTION; do DBUSER="$OPTARG" ;; ?) - exit_fail "Unrecognized command line option" + echo "Unrecognized command line option '$OPTION'" 1&>2 + exit 1 ;; esac done |