diff options
author | Florian Dold <florian@dold.me> | 2021-07-29 15:18:01 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2021-07-29 15:18:01 +0200 |
commit | 1746004ce9399d3cded981c87d4004bc09f655d1 (patch) | |
tree | fe670ca72e19161d67da12dba3f897ad249e7567 | |
parent | b0757e10da2c9e39c81fcda5b4ebf17005d82744 (diff) | |
download | exchange-1746004ce9399d3cded981c87d4004bc09f655d1.tar.xz |
use statoverride
-rw-r--r-- | debian/taler-exchange.postinst | 10 |
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 _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) @@ -56,8 +50,8 @@ configure) adduser --quiet ${_AGGRUSERNAME} ${_DBGROUPNAME} fi - fixperm ${_WIREUSERNAME}:root 460 /etc/taler/secrets/exchange-accounts.secret.conf - fixperm root:${_DBGROUPNAME} 640 /etc/taler/secrets/exchange-db.secret.conf + dpkg-statoverride --add --update ${_WIREUSERNAME} root 460 /etc/taler/secrets/exchange-accounts.secret.conf + dpkg-statoverride --add --update root ${_DBGROUPNAME} 660 /etc/taler/secrets/exchange-db.secret.conf ;; |