From c1c59173f4eefe98991f56811d05df4b71bf592d Mon Sep 17 00:00:00 2001 From: Dragan Dosen Date: Mon, 4 Feb 2008 09:25:14 +0000 Subject: [PATCH] r7: * provjera SAPI direktorija. --- debian/postinst | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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. -- 1.7.10.4