use statoverride
This commit is contained in:
parent
b0757e10da
commit
1746004ce9
10
debian/taler-exchange.postinst
vendored
10
debian/taler-exchange.postinst
vendored
@ -15,12 +15,6 @@ _ESECUSERNAME=taler-exchange-secmod-eddsa
|
|||||||
_AGGRUSERNAME=taler-exchange-aggregator
|
_AGGRUSERNAME=taler-exchange-aggregator
|
||||||
_WIREUSERNAME=taler-exchange-wire
|
_WIREUSERNAME=taler-exchange-wire
|
||||||
|
|
||||||
# usage: fixperm user:group perms file
|
|
||||||
function fixperm() {
|
|
||||||
chown "$1" "$3"
|
|
||||||
chmod "$2" "$3"
|
|
||||||
}
|
|
||||||
|
|
||||||
case "${1}" in
|
case "${1}" in
|
||||||
configure)
|
configure)
|
||||||
|
|
||||||
@ -56,8 +50,8 @@ configure)
|
|||||||
adduser --quiet ${_AGGRUSERNAME} ${_DBGROUPNAME}
|
adduser --quiet ${_AGGRUSERNAME} ${_DBGROUPNAME}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
fixperm ${_WIREUSERNAME}:root 460 /etc/taler/secrets/exchange-accounts.secret.conf
|
dpkg-statoverride --add --update ${_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 root ${_DBGROUPNAME} 660 /etc/taler/secrets/exchange-db.secret.conf
|
||||||
|
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user