deb-libreant/debian/python-libreant.postinst
boyska e6ee1d96df
adduser libreant
che iddio ce la mandi bona
2016-01-15 23:44:05 -05:00

32 lines
431 B
Bash

#!/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