aboutsummaryrefslogtreecommitdiff
path: root/debian/taler-exchange.postinst
diff options
context:
space:
mode:
Diffstat (limited to 'debian/taler-exchange.postinst')
-rw-r--r--debian/taler-exchange.postinst10
1 files changed, 2 insertions, 8 deletions
diff --git a/debian/taler-exchange.postinst b/debian/taler-exchange.postinst
index a5a2b97a3..353f7d6be 100644
--- a/debian/taler-exchange.postinst
+++ b/debian/taler-exchange.postinst
@@ -15,12 +15,6 @@ _ESECUSERNAME=taler-exchange-secmod-eddsa
15_AGGRUSERNAME=taler-exchange-aggregator 15_AGGRUSERNAME=taler-exchange-aggregator
16_WIREUSERNAME=taler-exchange-wire 16_WIREUSERNAME=taler-exchange-wire
17 17
18# usage: fixperm user:group perms file
19function fixperm() {
20 chown "$1" "$3"
21 chmod "$2" "$3"
22}
23
24case "${1}" in 18case "${1}" in
25configure) 19configure)
26 20
@@ -56,8 +50,8 @@ configure)
56 adduser --quiet ${_AGGRUSERNAME} ${_DBGROUPNAME} 50 adduser --quiet ${_AGGRUSERNAME} ${_DBGROUPNAME}
57 fi 51 fi
58 52
59 fixperm ${_WIREUSERNAME}:root 460 /etc/taler/secrets/exchange-accounts.secret.conf 53 dpkg-statoverride --add --update ${_WIREUSERNAME} root 460 /etc/taler/secrets/exchange-accounts.secret.conf
60 fixperm root:${_DBGROUPNAME} 640 /etc/taler/secrets/exchange-db.secret.conf 54 dpkg-statoverride --add --update root ${_DBGROUPNAME} 660 /etc/taler/secrets/exchange-db.secret.conf
61 55
62 ;; 56 ;;
63 57