summaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2021-07-29 15:18:01 +0200
committerFlorian Dold <florian@dold.me>2021-07-29 15:18:01 +0200
commit1746004ce9399d3cded981c87d4004bc09f655d1 (patch)
treefe670ca72e19161d67da12dba3f897ad249e7567 /debian
parentb0757e10da2c9e39c81fcda5b4ebf17005d82744 (diff)
downloadexchange-1746004ce9399d3cded981c87d4004bc09f655d1.tar.gz
exchange-1746004ce9399d3cded981c87d4004bc09f655d1.tar.bz2
exchange-1746004ce9399d3cded981c87d4004bc09f655d1.zip
use statoverride
Diffstat (limited to 'debian')
-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 a5a2b97a..353f7d6b 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
;;