gnunet-svn
[Top][All Lists]
Advanced

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

[taler-exchange] branch master updated: setup better paths, use Debian-s


From: gnunet
Subject: [taler-exchange] branch master updated: setup better paths, use Debian-specific systemd clean up logic instead of hacking around manually, improve README
Date: Thu, 31 Dec 2020 23:09:14 +0100

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

grothoff pushed a commit to branch master
in repository exchange.

The following commit(s) were added to refs/heads/master by this push:
     new 53abae74 setup better paths, use Debian-specific systemd clean up 
logic instead of hacking around manually, improve README
53abae74 is described below

commit 53abae740398634db9ec4685ac6b9016cb5642f3
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Thu Dec 31 23:09:12 2020 +0100

    setup better paths, use Debian-specific systemd clean up logic instead of 
hacking around manually, improve README
---
 debian/etc/taler.conf                  |  5 +++++
 debian/taler-exchange.README.Debian    | 20 +++++++++++++-------
 debian/taler-exchange.postinst         |  5 +++++
 debian/taler-exchange.postrm           |  6 ------
 debian/taler-exchange.postrm.debhelper |  6 ++++++
 5 files changed, 29 insertions(+), 13 deletions(-)

diff --git a/debian/etc/taler.conf b/debian/etc/taler.conf
index e69de29b..4d721e02 100644
--- a/debian/etc/taler.conf
+++ b/debian/etc/taler.conf
@@ -0,0 +1,5 @@
+[PATHS]
+
+# Move runtime data "tmp" directory to /var/lib/taler-exchange/
+# to possibly provide additional protection from unwarranted access.
+TALER_RUNTIME_DIR = /var/lib/taler-exchange/tmp/
diff --git a/debian/taler-exchange.README.Debian 
b/debian/taler-exchange.README.Debian
index 54aae8ea..72adb790 100644
--- a/debian/taler-exchange.README.Debian
+++ b/debian/taler-exchange.README.Debian
@@ -1,16 +1,22 @@
 taler-exchange
 --------------
 
-By default, the Taler exchange will start automatically when the system is 
booted.
-If you prefere to start it manually when you use it, change its configuration
-with:
-
-  # dpkg-reconfigure -plow taler-exchange
+Note that the configuration installed in /etc/taler.conf is incomplete and
+that Debian cannot launch an exchange with this minimal template. You must
+setup the currency, denominations and bank account access details before
+launching the Taler exchange can possibly succeed.
 
 In order to start, stop or restart manually the server, use:
 
-  # /etc/init.d/taler-exchange
+  # systemctl start taler-exchange
+  # systemctl stop taler-exchange
+  # systemctl restart taler-exchange
+
+To permanently the exchange whenever the system boots, use:
+
+  # systemctl enable taler-exchange
 
-with the parameter start, stop or restart.
+None of these are done by the Debian package because we cannot provide the
+required complete configuration details.
 
  -- Christian Grothoff <grothoff@gnu.org>  Mon 28 Dec 2020 11:37:14 AM CET
diff --git a/debian/taler-exchange.postinst b/debian/taler-exchange.postinst
index 0898f6ac..cfaf04a4 100644
--- a/debian/taler-exchange.postinst
+++ b/debian/taler-exchange.postinst
@@ -179,6 +179,11 @@ EOF
                cp -f "${CONFIG_NEW}" "${CONFIG_FILE}"
                echo " done."
 
+        mkdir -p /var/lib/taler-exchange/tmp
+        chown root:taler /var/lib/taler-exchange/tmp
+        chmod 770 /var/lib/taler-exchange/tmp
+        chmod +s /var/lib/taler-exchange/tmp
+
                # Cleaning
                rm -f "${CONFIG_NEW}"
                echo "All done."
diff --git a/debian/taler-exchange.postrm b/debian/taler-exchange.postrm
index ed5a2b2c..e2cba9d4 100644
--- a/debian/taler-exchange.postrm
+++ b/debian/taler-exchange.postrm
@@ -65,12 +65,6 @@ case "${1}" in
                fi
 
                rm -rf /var/log/taler/ /var/lib/taler /etc/default/taler
-        for X in httpd helper-rsa helper-eddsa wirewatch transfer
-        do
-            rm -f /etc/systemd/system/taler-exchange-${X}.service
-        done
-        systemctl daemon-reload
-
                ;;
 
        remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
diff --git a/debian/taler-exchange.postrm.debhelper 
b/debian/taler-exchange.postrm.debhelper
new file mode 100644
index 00000000..5d2556c1
--- /dev/null
+++ b/debian/taler-exchange.postrm.debhelper
@@ -0,0 +1,6 @@
+# Automatically added by dh_installdebconf/13.3
+if [ "$1" = purge ] && [ -e /usr/share/debconf/confmodule ]; then
+       . /usr/share/debconf/confmodule
+       db_purge
+fi
+# End automatically added section

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