~ubuntu-branches/ubuntu/utopic/dh-make-php/utopic

« back to all changes in this revision

Viewing changes to debhelper/postinst-pecl

  • Committer: Bazaar Package Importer
  • Author(s): Uwe Steinmann
  • Date: 2005-11-25 11:04:57 UTC
  • Revision ID: james.westby@ubuntu.com-20051125110457-hp4c6t4r7s42nd65
Tags: upstream-0.0.12
ImportĀ upstreamĀ versionĀ 0.0.12

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
if [ "$1" = "configure" ]; then
 
2
        for SAPI in apache2 apache cgi cli; do
 
3
                if [ -f /etc/php4/$SAPI/php.ini ]; then
 
4
                        if ! grep -q "^[[:space:]]*extension[[:space:]]*=[[:space:]]*#PECLMOD#" /etc/php4/$SAPI/php.ini; then
 
5
                                echo "extension=#PECLMOD#" >> /etc/php4/$SAPI/php.ini
 
6
                        fi
 
7
                fi
 
8
        done
 
9
fi