r3: * postinst - provjera postojanosti direktorija apache, apache2,
authorDragan Dosen <ddosen@ffzg.hr>
Wed, 31 Oct 2007 19:25:35 +0000 (19:25 +0000)
committerDragan Dosen <ddosen@ffzg.hr>
Wed, 31 Oct 2007 19:25:35 +0000 (19:25 +0000)
  cgi, cli unutar direktorija /etc/php5/.

debian/postinst

index 4d73590..397757c 100755 (executable)
@@ -112,10 +112,14 @@ done
 #
 for SAPI in apache apache2 cgi cli; do
 
+       if [ ! -d "$PHP5DIR/$SAPI" ]; then
+               continue
+       fi
+
        ini_file="$PHP5DIR/$SAPI/php.ini"
 
        cp_echo "CN: Checking and enabling some CARNet specific parameters in file $ini_file"
-
+       
         if [ -f "$ini_file" ]; then
 
                cp_check_and_sed "^[[:space:]]*upload_max_filesize[[:space:]]*=[[:space:]]*2M$" \