preinst 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 18 19 20 21 22 23 24 25 26 27 28 | #!/bin/sh
set -e
USAW="/usr/share/ampache/www"
#make sure these folders are empty so dh_linktree can due it's magic.
if [ "$1" = "upgrade" ]; then
if [ -d $USAW/modules/prototype ]; then
rm -rf $USAW/modules/prototype/*
fi
if [ -d $USAW/modules/snoopy ]; then
rm -rf $USAW/modules/snoopy/*
fi
if [ -d $USAW/modules/phpmailer ]; then
rm -rf $USAW/modules/phpmailer/*
fi
if [ -d $USAW/modules/php-gettext ]; then
rm -rf $USAW/modules/php-gettext/*
fi
if [ -d $USAW/modules/getid3 ]; then
rm -rf $USAW/modules/getid3/*
fi
fi
exit 0
|