deb-libreant/debian/python-libreant.postinst

33 lines
431 B
Text
Raw Normal View History

#!/bin/sh
set -eu
USER="libreant"
GROUP="$USER"
case "${1}" in
configure)
adduser \
--system \
--home /var/lib/libreant \
--quiet \
--group \
${USER} || true
mkdir -p '/var/lib/libreant/fsdb'
chown -R ${USER}:${GROUP} '/var/lib/libreant/fsdb'
;;
abort-upgrade|abort-remove|abort-deconfigure)
;;
*)
echo "postinst called with unknown argument \`${1}'" >&2
exit 1
;;
esac
#DEBHELPER#
exit 0