File: //var/lib/dpkg/info/isp-php81.preinst
#!/bin/bash
# preinst script for coremanager
#
# see: dh_installdeb(1)
#set -e
PHP_VER=81
PHP_PREFIX=/opt/php${PHP_VER}
case "$1" in
install)
;;
upgrade)
for ext in phar ; do
if [ ! -f ${PHP_PREFIX}/lib/php/modules/${ext}.so ]; then
ls ${PHP_PREFIX}/lib/php/modules > /tmp/.list_modules_php${PHP_VER}.tmp
fi
done
;;
*)
echo "preinst 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