use statoverride

This commit is contained in:
Florian Dold 2021-07-29 15:18:01 +02:00
parent b0757e10da
commit 1746004ce9
No known key found for this signature in database
GPG Key ID: D2E4F00F29D02A4B

View File

@ -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
;;