File: php4-memcache.postrm

package info (click to toggle)
php-memcache 2.0.1-1.1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 112 kB
  • ctags: 5
  • sloc: sh: 50; makefile: 26
file content (14 lines) | stat: -rw-r--r-- 424 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh -e
# Copyright 2005 Jonas Genannt <jonas.genannt@capi2name.de>
for ppkg in apache cli cgi apache2; do
	if [ -f /etc/php4/$ppkg/php.ini ]; then
		if grep -q "memcache.so" /etc/php4/$ppkg/php.ini; then
			phptemp=`mktemp`
			sed "s/extension=memcache.so//;s/memcache\..*//;s/\[memcache\]//;" < /etc/php4/$ppkg/php.ini > $phptemp
			mv -f $phptemp /etc/php4/$ppkg/php.ini
			rm -f $phptemp
		fi
	fi
done

#DEBHELPER#