change the myslice log file name and make it writable by apache
authorS.Çağlar Onur <caglar@cs.princeton.edu>
Thu, 28 Oct 2010 19:00:29 +0000 (15:00 -0400)
committerS.Çağlar Onur <caglar@cs.princeton.edu>
Thu, 28 Oct 2010 19:00:29 +0000 (15:00 -0400)
plekit/php/logSorting.php
plekit/php/updateConfiguration.php
plewww.spec

index 286bc9a..ec51656 100644 (file)
@@ -17,7 +17,7 @@ $value=$_GET["value"];
 $person_id=$_GET["person_id"];
 $slice_id=$_GET["slice_id"];
 
-$myFile = "/var/log/myslice-log";
+$myFile = "/var/log/myslice.log";
 $fh = fopen($myFile, 'a') or die("can't open file");
 $stringData = "\n".date('Ymd-H:i')."|".$person_id.":".$slice_id.":".$value;
 fwrite($fh, $stringData);
index 8b37381..9a0340b 100644 (file)
@@ -20,7 +20,7 @@ $tag_id=intval($_GET["tag_id"]);
 
 $api->UpdatePersonTag( $tag_id, $value );
 
-$myFile = "/var/log/myslice-log";
+$myFile = "/var/log/myslice.log";
 $fh = fopen($myFile, 'a') or die("can't open file");
 $stringData = "\n".date('Ymd-H:i')."|".$person_id.":".$slice_id.":".$value;
 fwrite($fh, $stringData);
index d420608..77a75be 100644 (file)
@@ -106,6 +106,9 @@ for module in user node; do
     cp -f /var/www/html/drupal-hacks/${module}.module /var/www/html/modules/${module}.module
 done
 popd
+# create myslice.log and change its ownership
+touch /var/log/myslice.log
+chown apache:apache /var/log/myslice.log
 
 %clean
 rm -rf $RPM_BUILD_ROOT