#!/bin/sh set -e if [ "$1" = "remove" ]; then update-alternatives --remove php-cgi /usr/bin/php5-cgi update-alternatives --remove php-cgi-bin /usr/lib/cgi-bin/php5 fi php5_enable() { return 0; } if [ -e /usr/share/php5/php5-maintscript-helper ]; then . /usr/share/php5/php5-maintscript-helper mods=$(php5query -M) for mod in $mods; do php5_invoke dismod cgi $mod done fi exit 0