32 lines
431 B
Bash
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
|