[Mageia-sysadm] [270] Use a subdirectory for data, to be writable by apache and fix a syntax error

root at mageia.org root at mageia.org
Wed Jan 12 12:52:13 CET 2011


Revision: 270
Author:   pterjan
Date:     2011-01-12 12:52:13 +0100 (Wed, 12 Jan 2011)
Log Message:
-----------
Use a subdirectory for data, to be writable by apache and fix a syntax error

Modified Paths:
--------------
    build_system/web/index.php

Modified: build_system/web/index.php
===================================================================
--- build_system/web/index.php	2011-01-12 11:44:21 UTC (rev 269)
+++ build_system/web/index.php	2011-01-12 11:52:13 UTC (rev 270)
@@ -16,6 +16,7 @@
 $tz = new DateTimeZone("UTC");
 
 # Temporary until initial mirror is ready
+chdir("data");
 $nb_rpm = shell_exec('rpm -qp --qf "%{SOURCERPM}\n" /distrib/bootstrap/distrib/cauldron/i586/media/core/release/*.rpm | sort -u | tee src.txt | wc -l');
 $nb_rpm_mga = shell_exec('grep mga src.txt | tee src.mga.txt | wc -l');
 shell_exec('grep -v mga src.txt > src.mdv.txt');
@@ -172,7 +173,6 @@
     echo $p["type"];
     if ($typelink)
         echo "</a>";
-    }
     echo "</td>\n";
     echo "</tr>\n";
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/mageia-sysadm/attachments/20110112/15a2f288/attachment.html>


More information about the Mageia-sysadm mailing list