debian: don't create home directories for every user
This commit is contained in:
parent
ce4daddca0
commit
e592ef4057
6
debian/taler-exchange-offline.postinst
vendored
6
debian/taler-exchange-offline.postinst
vendored
@ -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
|
||||
|
||||
;;
|
||||
|
15
debian/taler-exchange.postinst
vendored
15
debian/taler-exchange.postinst
vendored
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user