From: S.Çağlar Onur Date: Thu, 28 Oct 2010 19:00:29 +0000 (-0400) Subject: change the myslice log file name and make it writable by apache X-Git-Tag: plewww-4.3-55~1^2~1 X-Git-Url: http://git.onelab.eu/?p=plewww.git;a=commitdiff_plain;h=f498ceb3f52d656308582e140a4fd6284ebc1eac change the myslice log file name and make it writable by apache --- diff --git a/plekit/php/logSorting.php b/plekit/php/logSorting.php index 286bc9a..ec51656 100644 --- a/plekit/php/logSorting.php +++ b/plekit/php/logSorting.php @@ -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); diff --git a/plekit/php/updateConfiguration.php b/plekit/php/updateConfiguration.php index 8b37381..9a0340b 100644 --- a/plekit/php/updateConfiguration.php +++ b/plekit/php/updateConfiguration.php @@ -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); diff --git a/plewww.spec b/plewww.spec index d420608..77a75be 100644 --- a/plewww.spec +++ b/plewww.spec @@ -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