make taler-exchange-offline a 'normal' user with shell
This commit is contained in:
parent
2ad12de668
commit
c9d0e4a473
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
# Typically, there should only be a single line here, of the form:
|
# Typically, there should only be a single line here, of the form:
|
||||||
|
|
||||||
CONFIG=postgres:///DATABASE
|
# CONFIG=postgres:///DATABASE
|
||||||
|
|
||||||
# The details of the URI depend on where the database lives and how
|
# The details of the URI depend on where the database lives and how
|
||||||
# access control was configured.
|
# access control was configured.
|
||||||
|
10
debian/taler-exchange-offline.postinst
vendored
10
debian/taler-exchange-offline.postinst
vendored
@ -4,20 +4,18 @@ set -e
|
|||||||
|
|
||||||
. /usr/share/debconf/confmodule
|
. /usr/share/debconf/confmodule
|
||||||
|
|
||||||
TALER_HOME="/var/lib/taler"
|
|
||||||
|
|
||||||
case "${1}" in
|
case "${1}" in
|
||||||
configure)
|
configure)
|
||||||
|
|
||||||
if ! getent group taler-exchange-offline >/dev/null; then
|
if ! getent group taler-exchange-offline >/dev/null; then
|
||||||
addgroup --quiet --system taler-exchange-offline
|
addgroup --quiet taler-exchange-offline
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! getent passwd taler-exchange-offline >/dev/null; then
|
if ! getent passwd taler-exchange-offline >/dev/null; then
|
||||||
adduser --quiet --system \
|
adduser --quiet \
|
||||||
|
--disabled-password \
|
||||||
--ingroup taler-exchange-offline \
|
--ingroup taler-exchange-offline \
|
||||||
--no-create-home \
|
taler-exchange-offline
|
||||||
--home ${TALER_HOME} taler-exchange-offline
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
;;
|
;;
|
||||||
|
Loading…
Reference in New Issue
Block a user