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