postinst is in ampache-common 3.6-rzb2779+dfsg-0ubuntu1.
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 | #!/bin/sh
set -e
#remove old files if they exist. The interface has changed for apache2.4
#so these files are not needed.
if [ -e /etc/apache2/sites-enabled/ApacheAmpache ]; then
rm -f /etc/apache2/sites-available/ApacheAmpache
elif [ -e /etc/apache2/sites-enabled/ampvhadd ]; then
rm -f /etc/apache2/sites-available/ampvhadd
else
printf "ac_postinst: Vhost not present, nothing to do\n"
fi
exit 0
|