gnunet-svn
[Top][All Lists]
Advanced

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

[taler-merchant] branch master updated: -update dependencies, clean up S


From: gnunet
Subject: [taler-merchant] branch master updated: -update dependencies, clean up SQL
Date: Mon, 20 Jun 2022 22:09:23 +0200

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 b481de13 -update dependencies, clean up SQL
b481de13 is described below

commit b481de13fd218cc96b85b4a2a1fc0bdf75648c7f
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Mon Jun 20 22:09:14 2022 +0200

    -update dependencies, clean up SQL
---
 debian/control               |  3 +--
 debian/db/install/pgsql      |  2 +-
 debian/taler-merchant.postrm | 14 ++++++++++++++
 3 files changed, 16 insertions(+), 3 deletions(-)

diff --git a/debian/control b/debian/control
index 587403d5..f9176642 100644
--- a/debian/control
+++ b/debian/control
@@ -10,8 +10,7 @@ Build-Depends:
  gettext,
  libgnunet-dev (>=0.17.0),
  libtalerexchange-dev (>=0.9.0),
- libpq-dev (>=13),
- libsqlite3-dev (>=3.8),
+ libpq-dev (>=13.0),
  po-debconf,
  libqrencode-dev,
  zlib1g-dev,
diff --git a/debian/db/install/pgsql b/debian/db/install/pgsql
index 5ad50a33..33b8cb1d 100755
--- a/debian/db/install/pgsql
+++ b/debian/db/install/pgsql
@@ -17,7 +17,7 @@ if [ -f /etc/dbconfig-common/taler-merchant.conf ]; then
       $merchantdb_secretconf
 
     # Allow the taler-merchant-httpd user to create schemas, needed by dbinit
-    echo 'GRANT CREATE on database "talermerchant" to "taler-merchant-httpd";' 
| sudo -u postgres psql -f -
+    echo "GRANT CREATE ON DATABASE \"${dbc_dbtype}\" TO 
\"taler-merchant-httpd\";" | sudo -u postgres psql -f -
     # Run database initialization logic
     sudo -u taler-merchant-httpd taler-merchant-dbinit -c /etc/taler/taler.conf
     ;;
diff --git a/debian/taler-merchant.postrm b/debian/taler-merchant.postrm
index bf628b36..716f8982 100644
--- a/debian/taler-merchant.postrm
+++ b/debian/taler-merchant.postrm
@@ -11,6 +11,20 @@ if [ -f /usr/share/dbconfig-common/dpkg/postrm.pgsql ]; then
     dbc_go taler-merchant "$@"
 fi
 
+case "${1}" in
+purge)
+# TODO: anything to clean up? Like:
+#  rm -f /etc/taler/merchant-overrides.conf
+  ;;
+remove | upgrade | failed-upgrade | abort-install | abort-upgrade | disappear)
+  ;;
+
+  *)
+  echo "postrm called with unknown argument \`${1}'" >&2
+  exit 1
+  ;;
+esac
+
 #DEBHELPER#
 
 exit 0

-- 
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]