exchange/debian/taler-exchange-offline.postinst

37 lines
595 B
Plaintext
Raw Normal View History

#!/bin/bash
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
addgroup --quiet taler-exchange-offline
2021-07-26 14:20:27 +02:00
fi
2021-07-26 14:20:27 +02:00
if ! getent passwd taler-exchange-offline >/dev/null; then
adduser --quiet \
--disabled-password \
2023-03-04 23:18:36 +01:00
--comment "exchange offline key management" \
2021-07-26 14:20:27 +02:00
--ingroup taler-exchange-offline \
taler-exchange-offline
2021-07-26 14:20:27 +02:00
fi
2021-07-29 14:09:49 +02:00
;;
abort-upgrade | abort-remove | abort-deconfigure)
;;
*)
echo "postinst called with unknown argument \`${1}'" >&2
exit 1
;;
esac
#DEBHELPER#
exit 0