HEX
Server: Apache/2.4.65 (Debian)
System: Linux srv39710 6.1.0-41-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.158-1 (2025-11-09) x86_64
User: root (0)
PHP: 8.4.11
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
Upload Files
File: /var/lib/dpkg/info/ispmanager-pkg-phpfpm.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
CONFNAME=phpfpm.conf
. ${COREDIR}/lib/pkgsh/core_pkg_funcs.sh
. ${COREDIR}/lib/pkgsh/ispmgr_pkg_funcs.sh

if [ "$(lsb_release -s -c)" = "focal" ] || [ "$(lsb_release -s -c)" = "bullseye" ] || [ -f /etc/php/7.4/fpm/php.ini ]; then
	PHPETC=/etc/php/7.4
	PHPMOD=php
	FPMSERVICE=php7.4-fpm
elif [ "$(lsb_release -s -c)" = "buster" ] || [ -f /etc/php/7.3/fpm/php.ini ]; then
	PHPETC=/etc/php/7.3
	PHPMOD=php
	FPMSERVICE=php7.3-fpm
elif [ "$(lsb_release -s -c)" = "bionic" ] || [ -f /etc/php/7.2/fpm/php.ini ]; then
	PHPETC=/etc/php/7.2
	PHPMOD=php
	FPMSERVICE=php7.2-fpm
elif [ "$(lsb_release -s -c)" = "xenial" ] || [ -f /etc/php/7.0/fpm/php.ini ]; then
	PHPETC=/etc/php/7.0
	PHPMOD=php
	FPMSERVICE=php7.0-fpm
elif [ "$(lsb_release -s -c)" = "jammy" ] || [ -f /etc/php/8.1/fpm/php.ini ]; then
	PHPETC=/etc/php/8.1
	PHPMOD=php
	FPMSERVICE=php8.1-fpm
elif [ "$(lsb_release -s -c)" = "bookworm" ] || [ -f /etc/php/8.2/fpm/php.ini ]; then
	PHPETC=/etc/php/8.2
	PHPMOD=php
	FPMSERVICE=php8.2-fpm
elif [ "$(lsb_release -s -c)" = "noble" ] || [ -f /etc/php/8.3/fpm/php.ini ]; then
	PHPETC=/etc/php/8.3
	PHPMOD=php
	FPMSERVICE=php8.3-fpm
else
	PHPETC=/etc/php5
	PHPMOD=php5
	FPMSERVICE=php5-fpm
fi

case "$1" in
    remove)

		rm -f ${COREDIR}/etc/${ISPMGR}.conf.d/${CONFNAME}
		ReloadMgr ${ISPMGR}
		DisableServiceIspmgr ${FPMSERVICE}

	;;
	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