Current Path : /var/lib/dpkg/info/ |
Current File : /var/lib/dpkg/info/ispmanager-pkg-phpext-ioncube.prerm |
#!/bin/sh # prerm script for coremanager-5.15.0 # # see: dh_installdeb(1) #set -e # summary of how this script can be called: # * <prerm> `remove' # * <old-prerm> `upgrade' <new-version> # * <new-prerm> `failed-upgrade' <old-version> # * <conflictor's-prerm> `remove' `in-favour' <package> <new-version> # * <deconfigured's-prerm> `deconfigure' `in-favour' # <package-being-installed> <version> `removing' # <conflicting-package> <version> # for details, see http://www.debian.org/doc/debian-policy/ or # the debian-policy package COREDIR=/usr/local/mgr5 . ${COREDIR}/lib/pkgsh/ispmgr_pkg_funcs.sh if [ "$(lsb_release -s -c)" = "focal" ] || [ "$(lsb_release -s -c)" = "bullseye" ] || [ -f /etc/apache2/mods-available/php7.4.load ]; then PHPETC=/etc/php/7.4 PHPMOD=php7.4 PHPLIB=/usr/lib/php elif [ "$(lsb_release -s -c)" = "buster" ] || [ -f /etc/apache2/mods-available/php7.3.load ]; then PHPETC=/etc/php/7.3 PHPMOD=php7.3 PHPLIB=/usr/lib/php elif [ "$(lsb_release -s -c)" = "bionic" ] || [ -f /etc/apache2/mods-available/php7.2.load ]; then PHPETC=/etc/php/7.2 PHPMOD=php7.2 PHPLIB=/usr/lib/php elif [ "$(lsb_release -s -c)" = "xenial" ] || [ -f /etc/apache2/mods-available/php7.0.load ]; then PHPETC=/etc/php/7.0 PHPMOD=php7.0 PHPLIB=/usr/lib/php elif [ "$(lsb_release -s -c)" = "jammy" ] || [ -f /etc/apache2/mods-available/php8.1.load ]; then PHPETC=/etc/php/8.1 PHPMOD=php8.1 PHPLIB=/usr/lib/php elif [ "$(lsb_release -s -c)" = "bookworm" ] || [ -f /etc/apache2/mods-available/php8.2.load ]; then PHPETC=/etc/php/8.2 PHPMOD=php8.2 PHPLIB=/usr/lib/php else PHPETC=/etc/php5 PHPMOD=php5 PHPLIB=/usr/lib/php5 fi case "$1" in remove) rm -f ${PHPETC}/conf.d/01-ioncube.ini rm -f ${PHPETC}/apache2/conf.d/01-ioncube.ini rm -f ${PHPETC}/cgi/conf.d/01-ioncube.ini rm -f ${PHPETC}/cli/conf.d/01-ioncube.ini rm -f ${PHPETC}/fpm/conf.d/01-ioncube.ini rm -f ${PHPETC}/mods-available/ioncube.ini ReloadWeb ReloadMgr ${ISPMGR} ;; upgrade|deconfigure) ;; failed-upgrade) ;; *) echo "prerm called with unknown argument \`$1'" >&2 exit 1 ;; esac # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. exit 0