diff options
Diffstat (limited to 'debian/libapache-mod-php5.postinst')
| -rw-r--r-- | debian/libapache-mod-php5.postinst | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/debian/libapache-mod-php5.postinst b/debian/libapache-mod-php5.postinst deleted file mode 100644 index 39d44162b..000000000 --- a/debian/libapache-mod-php5.postinst +++ /dev/null @@ -1,45 +0,0 @@ -#!/bin/sh - -set -e - -#DEBHELPER# - - -if [ "$1" != "configure" ]; then - exit 0 -fi - -phpini="/etc/php5/apache/php.ini" -# LEGACY SUPPORT -# previous versions of php did not ship $phpini as a conffile nor did -# they use anything like ucf. as a result, we need to help transition -# those files into ucf a little more easily by updating unmodified -# ini files before registering them -# -# if we're upgrading from a pre-ucf version of php: -if dpkg --compare-versions "$2" le-nl "5.1.6-4"; then - # if the SAPI config file already exists and is unmodified - if [ -f "$phpini" ]; then - oldmd5=`md5sum $phpini | cut -d' ' -f1` - if [ "$oldmd5" = "c85605baab79fbcd3c289e442eb3caa2" ]; then - # then silently update it before registering via ucf - cp /usr/share/php5/php.ini-dist $phpini - fi - fi -fi -# END LEGACY SUPPORT - -ucf /usr/share/php5/php.ini-dist $phpini - -if [ -n "$2" ]; then -# we're upgrading. don't ask again - exit 0 -fi - -for i in apache apache-ssl apache-perl; do - if [ -e /etc/$i/httpd.conf ]; then - apache-modconf $i enable mod_php5 - fi -done - -exit 0 |
