From 0610511d69e99cd091bb0df2699246037c617613 Mon Sep 17 00:00:00 2001 From: Dragan Dosen Date: Mon, 4 Feb 2008 09:20:19 +0000 Subject: [PATCH] r12: * provjera SAPI direktorija --- debian/postinst | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/debian/postinst b/debian/postinst index cbb3a37..50c3ec7 100755 --- a/debian/postinst +++ b/debian/postinst @@ -58,16 +58,19 @@ for php5ext in $EXTENSIONS; do # configuration files. for SAPI in apache apache2 cgi cli; do - ini_file="$PHP5DIR/$SAPI/php.ini" + if [ -d "$PHP5DIR/$SAPI" ]; then + + ini_file="$PHP5DIR/$SAPI/php.ini" - if [ -f "$ini_file" ]; then + if [ -f "$ini_file" ]; then cp_echo "CN: Removing $php5ext extension from file $ini_file" cp_check_and_sed "$php5ext_re" \ "/$php5ext_re/d" \ "$ini_file" && need_restart=1 || true - fi + fi + fi done # Check $PHP5CONFD directory. -- 1.7.10.4