summaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2021-07-29 20:55:04 +0200
committerFlorian Dold <florian@dold.me>2021-07-29 20:55:04 +0200
commite592ef40578d57797e5df9a81be9f742bb0b3511 (patch)
tree887b9e7d5f58733f3fd616688c5bde070fdb8ef6 /debian
parentce4daddca0ef0b455ed6a09fc9e4478f41d72914 (diff)
downloadexchange-e592ef40578d57797e5df9a81be9f742bb0b3511.tar.gz
exchange-e592ef40578d57797e5df9a81be9f742bb0b3511.tar.bz2
exchange-e592ef40578d57797e5df9a81be9f742bb0b3511.zip
debian: don't create home directories for every user
Diffstat (limited to 'debian')
-rw-r--r--debian/taler-exchange-offline.postinst6
-rw-r--r--debian/taler-exchange.postinst15
2 files changed, 11 insertions, 10 deletions
diff --git a/debian/taler-exchange-offline.postinst b/debian/taler-exchange-offline.postinst
index b58e6f48..e22ad592 100644
--- a/debian/taler-exchange-offline.postinst
+++ b/debian/taler-exchange-offline.postinst
@@ -1,9 +1,10 @@
+#!/bin/bash
set -e
. /usr/share/debconf/confmodule
-TALER_HOME="/var/lib/taler-exchange"
+TALER_HOME="/var/lib/taler"
case "${1}" in
configure)
@@ -15,7 +16,8 @@ configure)
if ! getent passwd taler-exchange-offline >/dev/null; then
adduser --quiet --system \
--ingroup taler-exchange-offline \
- --home ${TALER_HOME}/offline taler-exchange-offline
+ --no-create-home \
+ --home ${TALER_HOME} taler-exchange-offline
fi
;;
diff --git a/debian/taler-exchange.postinst b/debian/taler-exchange.postinst
index 637ff8e0..b915129d 100644
--- a/debian/taler-exchange.postinst
+++ b/debian/taler-exchange.postinst
@@ -4,8 +4,7 @@ set -e
. /usr/share/debconf/confmodule
-TALER_HOME="/var/lib/taler-exchange"
-CONFIG_FILE="/etc/default/taler-exchange"
+TALER_HOME="/var/lib/taler"
_GROUPNAME=taler-exchange-secmod
_DBGROUPNAME=taler-exchange-db
_EUSERNAME=taler-exchange-httpd
@@ -28,25 +27,25 @@ configure)
# Create taler users if needed
if ! getent passwd ${_EUSERNAME} >/dev/null; then
- adduser --quiet --system --ingroup ${_GROUPNAME} --home ${TALER_HOME}/httpd ${_EUSERNAME}
+ adduser --quiet --system --no-create-home --ingroup ${_GROUPNAME} --home ${TALER_HOME} ${_EUSERNAME}
adduser --quiet ${_EUSERNAME} ${_DBGROUPNAME}
fi
if ! getent passwd ${_RSECUSERNAME} >/dev/null; then
- adduser --quiet --system --ingroup ${_GROUPNAME} --home ${TALER_HOME}/secmod-rsa ${_RSECUSERNAME}
+ adduser --quiet --system --no-create-home --ingroup ${_GROUPNAME} --home ${TALER_HOME} ${_RSECUSERNAME}
fi
if ! getent passwd ${_ESECUSERNAME} >/dev/null; then
- adduser --quiet --system --ingroup ${_GROUPNAME} --home ${TALER_HOME}/secmod-eddsa ${_ESECUSERNAME}
+ adduser --quiet --system --no-create-home --ingroup ${_GROUPNAME} --home ${TALER_HOME} ${_ESECUSERNAME}
fi
if ! getent passwd ${_WIREUSERNAME} >/dev/null; then
- adduser --quiet --system --home ${TALER_HOME}/wire ${_WIREUSERNAME}
+ adduser --quiet --system --no-create-home --home ${TALER_HOME} ${_WIREUSERNAME}
adduser --quiet ${_WIREUSERNAME} ${_DBGROUPNAME}
fi
if ! getent passwd ${_CLOSERUSERNAME} >/dev/null; then
- adduser --quiet --system --home ${TALER_HOME}/closer ${_CLOSERUSERNAME}
+ adduser --quiet --system --no-create-home --home ${TALER_HOME} ${_CLOSERUSERNAME}
adduser --quiet ${_CLOSERUSERNAME} ${_DBGROUPNAME}
fi
if ! getent passwd ${_AGGRUSERNAME} >/dev/null; then
- adduser --quiet --system --home ${TALER_HOME}/aggregator ${_AGGRUSERNAME}
+ adduser --quiet --system --no-create-home --home ${TALER_HOME} ${_AGGRUSERNAME}
adduser --quiet ${_AGGRUSERNAME} ${_DBGROUPNAME}
fi