preinst is in maas-region-api 2.0.0~beta3+bzr4941-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 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 | #!/bin/sh
set -e
. /usr/share/debconf/confmodule
if [ "$1" = "install" ] || [ "$1" = "upgrade" ]; then
if [ -f /etc/init/maas-txlongpoll.conf ]; then
invoke-rc.d maas-txlongpoll stop
fi
if [ -f /var/log/maas/txlongpoll.log ]; then
rm -rf /var/log/maas/txlongpoll.log
fi
if [ -f /etc/init/maas-region-celery.conf ]; then
invoke-rc.d maas-region-celery stop
fi
if [ -f /var/log/maas/celery-region.log ]; then
rm -rf /var/log/maas/celery-region.log
fi
if [ -f /var/log/maas/maas-django.log ]; then
rm -rf /var/log/maas/maas-django.log
fi
if [ -d /var/lib/maas/media ]; then
rm -rf /var/lib/maas/media
fi
fi
# Automatically added by dh_installdeb
dpkg-maintscript-helper rm_conffile /etc/maas/txlongpoll.yaml 1.7.0~beta4+bzr3124-0ubuntu1 -- "$@"
# End automatically added section
# Automatically added by dh_installdeb
dpkg-maintscript-helper rm_conffile /etc/init/maas-txlongpoll.conf 1.7.0~beta4+bzr3124-0ubuntu1 -- "$@"
# End automatically added section
# Automatically added by dh_installdeb
dpkg-maintscript-helper rm_conffile /etc/init/maas-region-celery.conf 1.7.0~beta4+bzr3124-0ubuntu1 -- "$@"
# End automatically added section
# Automatically added by dh_installdeb
dpkg-maintscript-helper rm_conffile /etc/maas/maas_local_celerconfig.py 1.7.0~beta4+bzr3124-0ubuntu1 -- "$@"
# End automatically added section
# Automatically added by dh_installdeb
dpkg-maintscript-helper rm_conffile /usr/share/maas/maas_local_celerconfig.py 1.7.0~beta4+bzr3124-0ubuntu1 -- "$@"
# End automatically added section
# Automatically added by dh_installdeb
dpkg-maintscript-helper rm_conffile /etc/maas/maas_local_celeryconfig.py 1.7.0~beta4+bzr3124-0ubuntu1 -- "$@"
# End automatically added section
# Automatically added by dh_installdeb
dpkg-maintscript-helper rm_conffile /etc/maas/maas-http.conf 1.9.0~alpha1+bzr4190-0ubuntu1 -- "$@"
# End automatically added section
|