File: php4-interbase.postinst

package info (click to toggle)
php4-interbase 4.3.10-2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 228 kB
  • ctags: 245
  • sloc: ansic: 2,499; php: 98; makefile: 71; sh: 47
file content (26 lines) | stat: -rw-r--r-- 475 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/sh

set -e

# Source debconf library.
. /usr/share/debconf/confmodule

#DEBHELPER#

if [ "$1" != "configure" ]; then
	exit 0
fi

for SAPI in apache cgi cli apache2
do
	if [ -f /etc/php4/$SAPI/php.ini ]; then
		db_get php4/extension_interbase_$SAPI
		if [ "$RET" = "true" ] \
		   && ! grep -q "^[[:space:]]*extension[[:space:]]*=[[:space:]]*interbase.so" /etc/php4/$SAPI/php.ini
		then
			echo "extension=interbase.so" >> /etc/php4/$SAPI/php.ini
		fi
	fi
done

exit 0