postinst is in fusioninventory-agent 1:2.3.16-1.
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 20 21 | #! /bin/sh
set -e
# Automatically added by dh_installinit
if [ -x "/etc/init.d/fusioninventory-agent" ]; then
update-rc.d fusioninventory-agent defaults >/dev/null
fi
if [ -x "/etc/init.d/fusioninventory-agent" ] || [ -e "/etc/init/fusioninventory-agent.conf" ]; then
invoke-rc.d fusioninventory-agent start || exit $?
fi
# End automatically added section
case "$1" in
configure)
[ -d "/etc/fusioninventory" ] || mkdir "/etc/fusioninventory"
ucf /usr/share/fusioninventory/etc/agent.cfg /etc/fusioninventory/agent.cfg
ucfr fusioninventory-agent /etc/fusioninventory/agent.cfg
esac
exit 0
|