aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2021-07-29 15:27:54 +0200
committerFlorian Dold <florian@dold.me>2021-07-29 15:27:54 +0200
commit973f364ae31a009dd25054b666d215f6b8b2fb5a (patch)
treef38a0d4ab19028b17a9f860c3a258b2c8dd12e02
parent49645317c3ec8ca784e2d200b2a0885ad721bdd9 (diff)
downloadexchange-973f364ae31a009dd25054b666d215f6b8b2fb5a.tar.gz
exchange-973f364ae31a009dd25054b666d215f6b8b2fb5a.zip
use statoverride conditionally
-rw-r--r--debian/taler-auditor.postinst6
-rw-r--r--debian/taler-exchange.postinst13
2 files changed, 16 insertions, 3 deletions
diff --git a/debian/taler-auditor.postinst b/debian/taler-auditor.postinst
index b46bf8446..b515e3e25 100644
--- a/debian/taler-auditor.postinst
+++ b/debian/taler-auditor.postinst
@@ -24,7 +24,11 @@ configure)
24 echo " done." 24 echo " done."
25 fi 25 fi
26 26
27 dpkg-statoverride --add --update ${_USERNAME} ${_GROUPNAME} 660 /etc/taler/secrets/auditor-db.secret.conf 27 if ! dpkg-statoverride --list /etc/taler/secrets/auditor-db.secret.conf >/dev/null 2>&1; then
28 dpkg-statoverride --add --update \
29 ${_USERNAME} ${_GROUPNAME} 660 \
30 /etc/taler/secrets/auditor-db.secret.conf
31 fi
28 32
29 ;; 33 ;;
30 34
diff --git a/debian/taler-exchange.postinst b/debian/taler-exchange.postinst
index 353f7d6be..637ff8e09 100644
--- a/debian/taler-exchange.postinst
+++ b/debian/taler-exchange.postinst
@@ -50,8 +50,17 @@ configure)
50 adduser --quiet ${_AGGRUSERNAME} ${_DBGROUPNAME} 50 adduser --quiet ${_AGGRUSERNAME} ${_DBGROUPNAME}
51 fi 51 fi
52 52
53 dpkg-statoverride --add --update ${_WIREUSERNAME} root 460 /etc/taler/secrets/exchange-accounts.secret.conf 53 if ! dpkg-statoverride --list /etc/taler/secrets/exchange-accounts.secret.conf >/dev/null 2>&1; then
54 dpkg-statoverride --add --update root ${_DBGROUPNAME} 660 /etc/taler/secrets/exchange-db.secret.conf 54 dpkg-statoverride --add --update \
55 ${_WIREUSERNAME} root 460 \
56 /etc/taler/secrets/exchange-accounts.secret.conf
57 fi
58
59 if ! dpkg-statoverride --list /etc/taler/secrets/exchange-db.secret.conf >/dev/null 2>&1; then
60 dpkg-statoverride --add --update \
61 root ${_DBGROUPNAME} 660 \
62 /etc/taler/secrets/exchange-db.secret.conf
63 fi
55 64
56 ;; 65 ;;
57 66