~jbboehr/+junk/php7.0-imagick-package

« back to all changes in this revision

Viewing changes to debian/phpX-imagick.postrm

  • Committer: John Boehr
  • Date: 2015-12-03 23:13:24 UTC
  • Revision ID: jbboehr@gmail.com-20151203231324-qx1sm0z4eux5ve8o
Upgrade to PHP7.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
set -e
 
3
 
 
4
PHP_EXTNAME=imagick
 
5
PHP_PKGNAME=imagick
 
6
 
 
7
# if just removing the package, comment out the module loading
 
8
if test "$1" = "remove" ; then
 
9
        sed -i s/extension/\;extension/g /etc/php/7.0/mods-available/$PHP_EXTNAME.ini
 
10
fi
 
11
 
 
12
[ "$1" = "remove" ] && phpdismod $PHP_EXTNAME
 
13
 
 
14
if test "$1" = "purge" ; then
 
15
        if which ucf >/dev/null 2>&1 ; then
 
16
                ucf --purge /etc/php/7.0/mods-available/$PHP_EXTNAME.ini
 
17
        fi
 
18
        rm -f /etc/php/7.0/mods-available/$PHP_EXTNAME.ini
 
19
fi
 
20
 
 
21
#DEBHELPER#
 
22
 
 
23
exit 0
 
24