28 lines
567 B
Bash
28 lines
567 B
Bash
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
case "$1" in
|
|
configure)
|
|
if ! getent passwd mitra > /dev/null; then
|
|
adduser --system --group --home /var/lib/mitra mitra
|
|
fi
|
|
# Update modification time to refresh nginx cache
|
|
touch /usr/share/mitra/www/index.html
|
|
;;
|
|
|
|
abort-upgrade|abort-remove|abort-deconfigure)
|
|
;;
|
|
|
|
*)
|
|
echo "postinst called with unknown argument \`$1'" >&2
|
|
exit 1
|
|
;;
|
|
esac
|
|
|
|
# dh_installdeb will replace this with shell code automatically
|
|
# generated by other debhelper scripts.
|
|
|
|
#DEBHELPER#
|
|
|
|
exit 0
|