summaryrefslogtreecommitdiff
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
_AGGRUSERNAME=taler-exchange-aggregator
_WIREUSERNAME=taler-exchange-wire
+# usage: fixperm user:group perms file
+function fixperm() {
+ chown "$1" "$3"
+ chmod "$2" "$3"
+}
+
case "${1}" in
configure)
@@ -50,8 +56,8 @@ configure)
adduser --quiet ${_AGGRUSERNAME} ${_DBGROUPNAME}
fi
- fixperm ${_WIREUSERNAME}:root 460 /etc/taler/exchange-wire-gateway.conf
- fixperm root:${_DBGROUPNAME} 640 /etc/taler/exchange-db.conf
+ fixperm ${_WIREUSERNAME}:root 460 /etc/taler/secrets/exchange-accounts.secret.conf
+ fixperm root:${_DBGROUPNAME} 640 /etc/taler/secrets/exchange-db.secret.conf
;;