debian: offline postinst

This commit is contained in:
Florian Dold 2021-07-26 14:20:27 +02:00
parent 5430dc3418
commit 3ceaae14a3
No known key found for this signature in database
GPG Key ID: D2E4F00F29D02A4B

View File

@ -19,13 +19,18 @@ function lncfg() {
case "${1}" in
configure)
if ! getent group taler-exchange-offline >/dev/null; then
addgroup --quiet --system taler-exchange-offline
fi
adduser --quiet --system --ingroup taler-exchange-offline --home ${TALEROFF_HOME}/httpd taler-exchange-offline
if ! getent passwd taler-exchange-offline >/dev/null; then
adduser --quiet --system \
--ingroup taler-exchange-offline \
--home ${TALEROFF_HOME}/httpd taler-exchange-offline
fi
lncfg taler-exchange-offline taler-exchange-offline /etc/taler/exchange-offline.conf
# Cleaning
echo "All done."
;;