debian: add taler-exchange-closer user

This commit is contained in:
Florian Dold 2021-07-27 16:53:02 +02:00
parent c5d579c9be
commit e80b1db566
No known key found for this signature in database
GPG Key ID: D2E4F00F29D02A4B

View File

@ -9,6 +9,7 @@ CONFIG_FILE="/etc/default/taler-exchange"
_GROUPNAME=taler-exchange-secmod _GROUPNAME=taler-exchange-secmod
_DBGROUPNAME=taler-exchange-db _DBGROUPNAME=taler-exchange-db
_EUSERNAME=taler-exchange-httpd _EUSERNAME=taler-exchange-httpd
_CLOSERUSERNAME=taler-exchange-closer
_RSECUSERNAME=taler-exchange-secmod-rsa _RSECUSERNAME=taler-exchange-secmod-rsa
_ESECUSERNAME=taler-exchange-secmod-eddsa _ESECUSERNAME=taler-exchange-secmod-eddsa
_AGGRUSERNAME=taler-exchange-aggregator _AGGRUSERNAME=taler-exchange-aggregator
@ -56,6 +57,10 @@ configure)
adduser --quiet --system --home ${TALER_HOME}/wire ${_WIREUSERNAME} adduser --quiet --system --home ${TALER_HOME}/wire ${_WIREUSERNAME}
adduser --quiet ${_WIREUSERNAME} ${_DBGROUPNAME} adduser --quiet ${_WIREUSERNAME} ${_DBGROUPNAME}
fi fi
if ! getent passwd ${_CLOSERUSERNAME} >/dev/null; then
adduser --quiet --system --home ${TALER_HOME}/closer ${_CLOSERUSERNAME}
adduser --quiet ${_CLOSERUSERNAME} ${_DBGROUPNAME}
fi
if ! getent passwd ${_AGGRUSERNAME} >/dev/null; then if ! getent passwd ${_AGGRUSERNAME} >/dev/null; then
adduser --quiet --system --home ${TALER_HOME}/aggregator ${_AGGRUSERNAME} adduser --quiet --system --home ${TALER_HOME}/aggregator ${_AGGRUSERNAME}
adduser --quiet ${_AGGRUSERNAME} ${_DBGROUPNAME} adduser --quiet ${_AGGRUSERNAME} ${_DBGROUPNAME}
@ -68,6 +73,7 @@ configure)
lncfg ${_RSECUSERNAME} secmod-rsa /etc/taler/exchange-service-default.conf lncfg ${_RSECUSERNAME} secmod-rsa /etc/taler/exchange-service-default.conf
lncfg ${_ESECUSERNAME} secmod-eddsa /etc/taler/exchange-service-default.conf lncfg ${_ESECUSERNAME} secmod-eddsa /etc/taler/exchange-service-default.conf
lncfg ${_AGGRUSERNAME} aggregator /etc/taler/exchange-service-default.conf lncfg ${_AGGRUSERNAME} aggregator /etc/taler/exchange-service-default.conf
lncfg ${_CLOSERUSERNAME} closer /etc/taler/exchange-service-default.conf
lncfg ${_WIREUSERNAME} wire /etc/taler/exchange-service-wire.conf lncfg ${_WIREUSERNAME} wire /etc/taler/exchange-service-wire.conf
;; ;;