gnunet-svn
[Top][All Lists]
Advanced

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

[taler-sync] branch master updated: improve Debian package


From: gnunet
Subject: [taler-sync] branch master updated: improve Debian package
Date: Sat, 09 Sep 2023 15:05:26 +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 d47e842  improve Debian package
d47e842 is described below

commit d47e8423303a50d1ffaaa2a494f70b99d4c8da55
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Sat Sep 9 15:05:23 2023 +0200

    improve Debian package
---
 debian/sync-httpd.postinst | 8 +++-----
 debian/sync-httpd.postrm   | 4 ++++
 2 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/debian/sync-httpd.postinst b/debian/sync-httpd.postinst
index 4c80646..ee402a1 100644
--- a/debian/sync-httpd.postinst
+++ b/debian/sync-httpd.postinst
@@ -31,11 +31,9 @@ configure)
     adduser --quiet --system --ingroup ${_GROUPNAME} --no-create-home --home 
${SYNC_HOME} ${_USERNAME}
   fi
 
-  if ! dpkg-statoverride --list /etc/sync/secrets/sync-db.secret.conf 
>/dev/null 2>&1; then
-    dpkg-statoverride --add --update \
-      sync-httpd root 460 \
-      /etc/sync/secrets/sync-db.secret.conf
-  fi
+  dpkg-statoverride --add --update \
+    sync-httpd root 640 \
+    /etc/sync/secrets/sync-db.secret.conf
 
   ;;
 
diff --git a/debian/sync-httpd.postrm b/debian/sync-httpd.postrm
index 31cd456..60aa9a5 100644
--- a/debian/sync-httpd.postrm
+++ b/debian/sync-httpd.postrm
@@ -6,10 +6,14 @@ if [ -f /usr/share/debconf/confmodule ]; then
   . /usr/share/debconf/confmodule
 fi
 
+_USERNAME=sync-httpd
+
 case "${1}" in
 purge)
   rm -rf /var/lib/sync/httpd/
   rm -f /etc/sync/override.conf
+  dpkg-statoverride --remove /etc/sync/secrets/sync-db.secret.conf
+  deluser --system --quiet ${_USERNAME} || true
   ;;
 remove | upgrade | failed-upgrade | abort-install | abort-upgrade | disappear)
   ;;

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