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, 8 insertions, 2 deletions
diff --git a/debian/taler-exchange.postinst b/debian/taler-exchange.postinst
index 18f140f5c..a5a2b97a3 100644
--- a/debian/taler-exchange.postinst
+++ b/debian/taler-exchange.postinst
@@ -15,6 +15,12 @@ _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
18case "${1}" in 24case "${1}" in
19configure) 25configure)
20 26
@@ -50,8 +56,8 @@ configure)
50 adduser --quiet ${_AGGRUSERNAME} ${_DBGROUPNAME} 56 adduser --quiet ${_AGGRUSERNAME} ${_DBGROUPNAME}
51 fi 57 fi
52 58
53 fixperm ${_WIREUSERNAME}:root 460 /etc/taler/exchange-wire-gateway.conf 59 fixperm ${_WIREUSERNAME}:root 460 /etc/taler/secrets/exchange-accounts.secret.conf
54 fixperm root:${_DBGROUPNAME} 640 /etc/taler/exchange-db.conf 60 fixperm root:${_DBGROUPNAME} 640 /etc/taler/secrets/exchange-db.secret.conf
55 61
56 ;; 62 ;;
57 63