~ubuntu-branches/ubuntu/trusty/php-memcache/trusty

« back to all changes in this revision

Viewing changes to debian/php5-memcache.postrm

  • Committer: Bazaar Package Importer
  • Author(s): Pierre Habouzit
  • Date: 2007-04-10 21:35:03 UTC
  • mfrom: (1.1.1 upstream) (2.1.1 etch)
  • Revision ID: james.westby@ubuntu.com-20070410213503-egpfyfd8ew7tx4yy
Tags: 2.1.2-2
Dropping php4 support (Closes: #418304).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/bin/sh -e
2
 
# Copyright 2005 Jonas Genannt <jonas.genannt@capi2name.de>
3
 
for ppkg in apache cli cgi apache2; do
4
 
        if [ -f /etc/php5/$ppkg/php.ini ]; then
5
 
                if grep -q "memcache.so" /etc/php5/$ppkg/php.ini; then
6
 
                        phptemp=`mktemp`
7
 
                        sed "s/extension=memcache.so//;s/memcache\..*//;s/\[memcache\]//;" < /etc/php5/$ppkg/php.ini > $phptemp
8
 
                        mv -f $phptemp /etc/php5/$ppkg/php.ini
9
 
                        rm -f $phptemp
10
 
                fi
11
 
        fi
12
 
done
13
 
 
14
 
#DEBHELPER#