[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-sync] branch master updated: allow -h without root
From: |
gnunet |
Subject: |
[taler-sync] branch master updated: allow -h without root |
Date: |
Fri, 11 Aug 2023 20:43:03 +0200 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository sync.
The following commit(s) were added to refs/heads/master by this push:
new a840b38 allow -h without root
a840b38 is described below
commit a840b38627d3e63c84cf6132d2a7cd0802fbda7c
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Fri Aug 11 20:42:59 2023 +0200
allow -h without root
---
contrib/{taler-sync-dbconfig => sync-dbconfig} | 24 ++++++++++++------------
1 file changed, 12 insertions(+), 12 deletions(-)
diff --git a/contrib/taler-sync-dbconfig b/contrib/sync-dbconfig
similarity index 100%
rename from contrib/taler-sync-dbconfig
rename to contrib/sync-dbconfig
index 8562fd9..71d4d19 100755
--- a/contrib/taler-sync-dbconfig
+++ b/contrib/sync-dbconfig
@@ -19,18 +19,6 @@
# Error checking on
set -eu
-if ! id postgres > /dev/null
-then
- echo "Could not find 'postgres' user. Please install Postgresql first"
- exit 1
-fi
-
-if [ "$(id -u)" -ne 0 ]
-then
- echo "This script must be run as root"
- exit 1
-fi
-
RESET_DB=0
SKIP_DBINIT=0
DBUSER="sync-httpd"
@@ -67,6 +55,18 @@ while getopts ':hn:rsu:' OPTION; do
esac
done
+if ! id postgres > /dev/null
+then
+ echo "Could not find 'postgres' user. Please install Postgresql first"
+ exit 1
+fi
+
+if [ "$(id -u)" -ne 0 ]
+then
+ echo "This script must be run as root"
+ exit 1
+fi
+
if [ 0 = "$SKIP_DBINIT" ]
then
if ! sync-dbinit -v 2> /dev/null
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-sync] branch master updated: allow -h without root,
gnunet <=