postinst is in scanlogd 2.2.5-3.3.
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 | #!/bin/sh
update-rc.d scanlogd defaults >/dev/null
if [ -d /home/scanlogd ] ; then # Clean up after #668722
rmdir /home/scanlogd # If for some reason the directory isn't empty
# then the directory shouldn't be unconditionally
# removed
fi
# scanlogd needs a user
adduser --system --home /var/lib/scanlogd --no-create-home --quiet scanlogd || true
if which invoke-rc.d >/dev/null 2>&1; then
invoke-rc.d scanlogd start
else
/etc/init.d/scanlogd start
fi
|