use statoverride conditionally
This commit is contained in:
parent
49645317c3
commit
973f364ae3
6
debian/taler-auditor.postinst
vendored
6
debian/taler-auditor.postinst
vendored
@ -24,7 +24,11 @@ configure)
|
||||
echo " done."
|
||||
fi
|
||||
|
||||
dpkg-statoverride --add --update ${_USERNAME} ${_GROUPNAME} 660 /etc/taler/secrets/auditor-db.secret.conf
|
||||
if ! dpkg-statoverride --list /etc/taler/secrets/auditor-db.secret.conf >/dev/null 2>&1; then
|
||||
dpkg-statoverride --add --update \
|
||||
${_USERNAME} ${_GROUPNAME} 660 \
|
||||
/etc/taler/secrets/auditor-db.secret.conf
|
||||
fi
|
||||
|
||||
;;
|
||||
|
||||
|
13
debian/taler-exchange.postinst
vendored
13
debian/taler-exchange.postinst
vendored
@ -50,8 +50,17 @@ configure)
|
||||
adduser --quiet ${_AGGRUSERNAME} ${_DBGROUPNAME}
|
||||
fi
|
||||
|
||||
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
|
||||
if ! dpkg-statoverride --list /etc/taler/secrets/exchange-accounts.secret.conf >/dev/null 2>&1; then
|
||||
dpkg-statoverride --add --update \
|
||||
${_WIREUSERNAME} root 460 \
|
||||
/etc/taler/secrets/exchange-accounts.secret.conf
|
||||
fi
|
||||
|
||||
if ! dpkg-statoverride --list /etc/taler/secrets/exchange-db.secret.conf >/dev/null 2>&1; then
|
||||
dpkg-statoverride --add --update \
|
||||
root ${_DBGROUPNAME} 660 \
|
||||
/etc/taler/secrets/exchange-db.secret.conf
|
||||
fi
|
||||
|
||||
;;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user