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

« back to all changes in this revision

Viewing changes to debian/php4-memcache.postinst

  • 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
. /usr/share/debconf/confmodule
 
4
db_get php4-memcache/edit_phpini || true
 
5
if [ "$RET" = true ]; then
 
6
    for ppkg in apache cli cgi apache2; do
 
7
        if [ -f /etc/php4/$ppkg/php.ini ]; then
 
8
            if ! grep -q "memcache.so" /etc/php4/$ppkg/php.ini; then
 
9
                echo -e "extension=memcache.so\n[memcache]\nmemcache.dbpath="/var/lib/memcache"\nmemcache.maxreclevel=0\nmemcache.maxfiles=0\nmemcache.archivememlim=0\nmemcache.maxfilesize=0\nmemcache.maxratio=0" >> /etc/php4/$ppkg/php.ini
 
10
            fi
 
11
        fi
 
12
    done
 
13
    echo "Configure php.ini files....."
 
14
fi
 
15
 
 
16
 
 
17
#DEBHELPER#