From: Dragan Dosen Date: Mon, 4 Feb 2008 09:25:14 +0000 (+0000) Subject: r7: X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?p=php4-cn.git;a=commitdiff_plain;h=c1c59173f4eefe98991f56811d05df4b71bf592d r7: * provjera SAPI direktorija. --- diff --git a/debian/postinst b/debian/postinst index 2ec8df8..fb5fed7 100755 --- a/debian/postinst +++ b/debian/postinst @@ -58,16 +58,19 @@ for php4ext in $EXTENSIONS; do # configuration files. for SAPI in apache apache2 cgi cli; do - ini_file="$PHP4DIR/$SAPI/php.ini" + if [ -d "$PHP4DIR/$SAPI" ]; then - if [ -f "$ini_file" ]; then + ini_file="$PHP4DIR/$SAPI/php.ini" + + if [ -f "$ini_file" ]; then cp_echo "CN: Removing $php4ext extension from file $ini_file" cp_check_and_sed "$php4ext_re" \ "/$php4ext_re/d" \ "$ini_file" && need_restart=1 || true - fi + fi + fi done # Check $PHP4CONFD directory.