diff options
author | Florian Dold <florian@dold.me> | 2021-07-29 13:41:49 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2021-07-29 13:41:49 +0200 |
commit | a367347a54338641180083573698b1fb48aced55 (patch) | |
tree | 4e0310ab335b58e68b9711eb3b33fa1c620b8785 /debian/taler-exchange.postinst | |
parent | 036d4cb71ac1abe1990c936ee1f3b2cbf15d14c1 (diff) |
simplify configuration
Diffstat (limited to 'debian/taler-exchange.postinst')
-rw-r--r-- | debian/taler-exchange.postinst | 10 |
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 ;; |