File: php4-clamavlib.postrm

package info (click to toggle)
php-clamavlib 0.12a-4
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 144 kB
  • ctags: 71
  • sloc: ansic: 465; makefile: 99; sh: 50; php: 17
file content (14 lines) | stat: -rw-r--r-- 416 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 "clamav.so" /etc/php4/$ppkg/php.ini; then
			phptemp=`mktemp`
			sed "s/extension=clamav.so//;s/clamav\..*//;s/\[clamav\]//;" < /etc/php4/$ppkg/php.ini > $phptemp
			mv -f $phptemp /etc/php4/$ppkg/php.ini
			rm -f $phptemp
		fi
	fi
done

#DEBHELPER#