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

« back to all changes in this revision

Viewing changes to debian/php5-memcache.postinst

  • 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
 
. /usr/share/debconf/confmodule
4
 
db_get php5-memcache/edit_phpini || true
5
 
if [ "$RET" = true ]; then
6
 
        for ppkg in apache cli cgi apache2; do
7
 
                if [ -f /etc/php5/$ppkg/php.ini ]; then
8
 
                        if ! grep -q "memcache.so" /etc/php5/$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/php5/$ppkg/php.ini
10
 
                        fi
11
 
                fi
12
 
        done
13
 
        echo "Configure php.ini files....."
14
 
fi
15
 
 
16
 
 
17
 
#DEBHELPER#