diff options
Diffstat (limited to 'debian/taler-exchange.postinst')
-rw-r--r-- | debian/taler-exchange.postinst | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/debian/taler-exchange.postinst b/debian/taler-exchange.postinst index b68ee19f4..7509a7749 100644 --- a/debian/taler-exchange.postinst +++ b/debian/taler-exchange.postinst @@ -13,6 +13,7 @@ _CSECUSERNAME=taler-exchange-secmod-cs _RSECUSERNAME=taler-exchange-secmod-rsa _ESECUSERNAME=taler-exchange-secmod-eddsa _AGGRUSERNAME=taler-exchange-aggregator +_EXPIUSERNAME=taler-exchange-expire _WIREUSERNAME=taler-exchange-wire case "${1}" in @@ -30,6 +31,7 @@ configure) if ! getent passwd ${_EUSERNAME} >/dev/null; then adduser --quiet --system --no-create-home --ingroup ${_GROUPNAME} --home ${TALER_HOME} ${_EUSERNAME} adduser --quiet ${_EUSERNAME} ${_DBGROUPNAME} + adduser --quiet ${_EUSERNAME} ${_GROUPNAME} fi if ! getent passwd ${_RSECUSERNAME} >/dev/null; then adduser --quiet --system --no-create-home --ingroup ${_GROUPNAME} --home ${TALER_HOME} ${_RSECUSERNAME} @@ -52,16 +54,20 @@ configure) adduser --quiet --system --no-create-home --home ${TALER_HOME} ${_AGGRUSERNAME} adduser --quiet ${_AGGRUSERNAME} ${_DBGROUPNAME} fi + if ! getent passwd ${_EXPIUSERNAME} >/dev/null; then + adduser --quiet --system --no-create-home --home ${TALER_HOME} ${_EXPIUSERNAME} + adduser --quiet ${_EXPIUSERNAME} ${_DBGROUPNAME} + fi - if ! dpkg-statoverride --list /etc/taler/secrets/exchange-accountcredentials.secret.conf >/dev/null 2>&1; then + if ! dpkg-statoverride --list /etc/taler/secrets/exchange-accountcredentials-1.secret.conf >/dev/null 2>&1; then dpkg-statoverride --add --update \ - ${_WIREUSERNAME} root 460 \ - /etc/taler/secrets/exchange-accountcredentials.secret.conf + ${_WIREUSERNAME} root 640 \ + /etc/taler/secrets/exchange-accountcredentials-1.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 \ + root ${_DBGROUPNAME} 640 \ /etc/taler/secrets/exchange-db.secret.conf fi |