fedimovies/contrib/debian/postinst

29 lines
567 B
Text
Raw Normal View History

#!/bin/sh
set -e
case "$1" in
configure)
2022-05-11 16:17:17 +00:00
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