[Pkg-php-commits] [php/debian-sid] remove another chunk of legacy conffile handling support code
Sean Finney
seanius at debian.org
Sat Sep 19 22:33:56 UTC 2009
---
debian/php5-module.postinst | 20 --------------------
1 files changed, 0 insertions(+), 20 deletions(-)
diff --git a/debian/php5-module.postinst b/debian/php5-module.postinst
index cb14799..ca62bb9 100644
--- a/debian/php5-module.postinst
+++ b/debian/php5-module.postinst
@@ -2,26 +2,6 @@
set -e
-# here we test for upgrades from versions prior to the config-file-scan-dir
-# migration.
-#
-# to avoid lots of scary warnings about duplicate-loaded modules, each
-# module will remove its "extension=" line from each SAPI's php.ini file
-# when upgrading from a "prior version". this will be the last time we
-# ever muck with such files in maintainer scripts. really. promise :)
-
-if [ "$2" ] && dpkg --compare-versions "$2" lt "5.1.6-5"; then
- extension_re='^[[:space:]]*extension[[:space:]]*=[[:space:]]*@dsoname@\.so$'
- for SAPI in apache apache2 cgi cli; do
- ini_file="/etc/php5/$SAPI/php.ini"
- if [ -f "$ini_file" ]; then
- if grep -q "$extension_re" $ini_file; then
- sed -i -e "/$extension_re/d" $ini_file
- fi
- fi
- done
-fi
-
#EXTRA#
#DEBHELPER#
--
1.5.6.5
More information about the Pkg-php-commits
mailing list