| 1 |
#!/bin/sh |
| 2 |
# From MirOS: contrib/hosted/tg/deb/jupp/debian/jupp.prerm,v 1.4 2011/09/06 20:07:39 tg Exp $ |
| 3 |
|
| 4 |
set -e |
| 5 |
|
| 6 |
case $1 in |
| 7 |
remove|deconfigure|upgrade|failed-upgrade) |
| 8 |
# Cleanup old mediawiki.ini |
| 9 |
# This is intentionally PHP5 only, it was never installed |
| 10 |
# for PHP7. |
| 11 |
if [ -e "/usr/share/php5/php5-maintscript-helper" ]; then |
| 12 |
. /usr/share/php5/php5-maintscript-helper |
| 13 |
php5_invoke dismod ALL mediawiki |
| 14 |
fi |
| 15 |
;; |
| 16 |
|
| 17 |
*) |
| 18 |
echo >&2 "prerm called with unknown subcommand '$1'" |
| 19 |
exit 1 |
| 20 |
;; |
| 21 |
esac |
| 22 |
|
| 23 |
# dh_installdeb will replace this with shell code automatically |
| 24 |
# generated by other debhelper scripts. |
| 25 |
|
| 26 |
#DEBHELPER# |
| 27 |
|
| 28 |
exit 0 |