exchange/debian/taler-exchange-offline.postinst
2021-07-29 14:09:49 +02:00

36 lines
588 B
Plaintext

set -e
. /usr/share/debconf/confmodule
TALER_HOME="/var/lib/taler-exchange"
case "${1}" in
configure)
if ! getent group taler-exchange-offline >/dev/null; then
addgroup --quiet --system taler-exchange-offline
fi
if ! getent passwd taler-exchange-offline >/dev/null; then
adduser --quiet --system \
--ingroup taler-exchange-offline \
--home ${TALER_HOME}/offline taler-exchange-offline
fi
;;
abort-upgrade | abort-remove | abort-deconfigure)
;;
*)
echo "postinst called with unknown argument \`${1}'" >&2
exit 1
;;
esac
#DEBHELPER#
exit 0