~ubuntu-branches/ubuntu/natty/php-memcache/natty

« back to all changes in this revision

Viewing changes to debian/php5-memcache.postrm

  • Committer: Bazaar Package Importer
  • Author(s): Pierre Habouzit
  • Date: 2006-04-13 00:12:19 UTC
  • Revision ID: james.westby@ubuntu.com-20060413001219-66pwq37137sggn6c
Tags: 2.0.1-1
Initial release (closes: #320744).

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#