aboutsummaryrefslogtreecommitdiff
path: root/debian/taler-exchange-offline.postinst
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2021-07-26 14:20:27 +0200
committerFlorian Dold <florian@dold.me>2021-07-26 14:20:27 +0200
commit3ceaae14a36aa7faa33be4ecc3a8bfb9b3088ade (patch)
treeff90d50955d77606a68f7978403ff87b337fb82f /debian/taler-exchange-offline.postinst
parent5430dc34180e1c72c9a09f9eb17c2999e426bf77 (diff)
debian: offline postinst
Diffstat (limited to 'debian/taler-exchange-offline.postinst')
-rw-r--r--debian/taler-exchange-offline.postinst11
1 files changed, 8 insertions, 3 deletions
diff --git a/debian/taler-exchange-offline.postinst b/debian/taler-exchange-offline.postinst
index 125afbc5b..0f436abbe 100644
--- a/debian/taler-exchange-offline.postinst
+++ b/debian/taler-exchange-offline.postinst
@@ -19,13 +19,18 @@ function lncfg() {
case "${1}" in
configure)
- addgroup --quiet --system taler-exchange-offline
+ 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."
;;