2021-07-29 20:55:04 +02:00
|
|
|
#!/bin/bash
|
2021-07-26 14:18:02 +02:00
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
. /usr/share/debconf/confmodule
|
|
|
|
|
|
|
|
case "${1}" in
|
|
|
|
configure)
|
|
|
|
|
2021-07-26 14:20:27 +02:00
|
|
|
if ! getent group taler-exchange-offline >/dev/null; then
|
2023-03-04 20:33:18 +01:00
|
|
|
addgroup --quiet taler-exchange-offline
|
2021-07-26 14:20:27 +02:00
|
|
|
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
|
2023-03-04 20:33:18 +01:00
|
|
|
adduser --quiet \
|
|
|
|
--disabled-password \
|
2023-03-04 23:33:11 +01:00
|
|
|
--system \
|
|
|
|
--shell /bin/bash \
|
2023-03-06 20:10:07 +01:00
|
|
|
--home /home/taler-exchange-offline \
|
2021-07-26 14:20:27 +02:00
|
|
|
--ingroup taler-exchange-offline \
|
2023-03-04 20:33:18 +01:00
|
|
|
taler-exchange-offline
|
2021-07-26 14:20:27 +02:00
|
|
|
fi
|
2021-07-26 14:18:02 +02:00
|
|
|
|
2021-07-29 14:09:49 +02:00
|
|
|
;;
|
|
|
|
|
|
|
|
abort-upgrade | abort-remove | abort-deconfigure)
|
|
|
|
|
|
|
|
;;
|
2021-07-26 14:18:02 +02:00
|
|
|
|
|
|
|
*)
|
|
|
|
echo "postinst called with unknown argument \`${1}'" >&2
|
|
|
|
exit 1
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
#DEBHELPER#
|
|
|
|
|
|
|
|
exit 0
|