diff options
author | Christian Grothoff <christian@grothoff.org> | 2024-11-24 16:08:51 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2024-11-24 16:08:51 +0100 |
commit | 59230e9d1e7f6d7c0bdf20bb90006c691d46a2d0 (patch) | |
tree | afe8885a4da437949b972eb0a77a2716b5d918bb | |
parent | 4f0ec8a8b57509fffb55cac907ca3dddf5050ed0 (diff) |
fix dbconfig commands
-rwxr-xr-x | contrib/taler-auditor-dbconfig | 10 | ||||
-rwxr-xr-x | contrib/taler-exchange-dbconfig | 2 |
2 files changed, 8 insertions, 4 deletions
diff --git a/contrib/taler-auditor-dbconfig b/contrib/taler-auditor-dbconfig index 5542a037e..322585772 100755 --- a/contrib/taler-auditor-dbconfig +++ b/contrib/taler-auditor-dbconfig @@ -22,14 +22,18 @@ set -eu RESET_DB=0 SKIP_DBINIT=0 DBUSER="taler-auditor-httpd" -CFGFILE="/etc/taler/taler.conf" +CFGFILE="/etc/taler-auditor/taler-auditor.conf" # Parse command-line options -while getopts ':hrsu:' OPTION; do +while getopts 'c:hrsu:' OPTION; do case "$OPTION" in + c) + CFGFILE="$OPTARG" + ;; 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-auditor to be run by USER (default: $DBUSER)" @@ -45,7 +49,7 @@ while getopts ':hrsu:' OPTION; do DBUSER="$OPTARG" ;; ?) - exit_fail "Unrecognized command line option" + echo "Unrecognized command line option '$OPTION'" 1>&2 ;; esac done diff --git a/contrib/taler-exchange-dbconfig b/contrib/taler-exchange-dbconfig index 15445b6c6..10fbdd03e 100755 --- a/contrib/taler-exchange-dbconfig +++ b/contrib/taler-exchange-dbconfig @@ -24,7 +24,7 @@ SKIP_DBINIT=0 FORCE_PERMS=0 DBUSER="taler-exchange-httpd" DBGROUP="taler-exchange-db" -CFGFILE="/etc/taler/taler.conf" +CFGFILE="/etc/taler-exchange/taler-exchange.conf" # Parse command-line options while getopts 'c:g:hprsu:' OPTION; do |