postinst is in sm-archive 1.7-1build1.
This file is a maintainer script. It is executed when installing (*inst) or removing (*rm) the package.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | #!/bin/sh -e
if [ "$1" = "configure" ]; then
if ! id -u sm-archive > /dev/null 2>&1; then
adduser --quiet --system --home /nonexistent sm-archive
fi
fi
# Automatically added by dh_installinit
if [ -x "/etc/init.d/sm-archive" ]; then
if [ ! -e "/etc/init/sm-archive.conf" ]; then
update-rc.d sm-archive defaults >/dev/null
fi
invoke-rc.d sm-archive start || exit $?
fi
# End automatically added section
exit 0
|