File: php5-json.postinst

package info (click to toggle)
php-json-ext 1.2.1-3.2
  • links: PTS
  • area: main
  • in suites: etch-m68k
  • size: 1,004 kB
  • ctags: 112
  • sloc: sh: 7,418; ansic: 1,020; makefile: 121; awk: 70
file content (17 lines) | stat: -rw-r--r-- 485 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh -e
# Copyright 2005 Jonas Genannt <jonas.genannt@capi2name.de>
. /usr/share/debconf/confmodule
db_get php5-json/edit_phpini || true
if [ "$RET" = true ]; then
    for ppkg in apache cli cgi apache2; do
        if [ -f /etc/php5/$ppkg/php.ini ]; then
            if ! grep -q "json.so" /etc/php5/$ppkg/php.ini; then
                echo "extension=json.so" >> /etc/php5/$ppkg/php.ini
            fi
        fi
    done
    echo "Configure php.ini files....."
fi


#DEBHELPER#