r7:
authorDragan Dosen <ddosen@ffzg.hr>
Mon, 4 Feb 2008 09:25:14 +0000 (09:25 +0000)
committerDragan Dosen <ddosen@ffzg.hr>
Mon, 4 Feb 2008 09:25:14 +0000 (09:25 +0000)
  * provjera SAPI direktorija.

debian/postinst

index 2ec8df8..fb5fed7 100755 (executable)
@@ -58,16 +58,19 @@ for php4ext in $EXTENSIONS; do
        # configuration files.
         for SAPI in apache apache2 cgi cli; 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
 
                        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.
         done
 
        # Check $PHP4CONFD directory.