Make directory with the logs writable (automatic purge runs under glite user).
authorFrantišek Dvořák <valtri@civ.zcu.cz>
Tue, 3 May 2011 13:33:33 +0000 (13:33 +0000)
committerFrantišek Dvořák <valtri@civ.zcu.cz>
Tue, 3 May 2011 13:33:33 +0000 (13:33 +0000)
org.glite.lb.yaim/config/functions/config_glite_lb.in

index d267f56..2b5c8da 100644 (file)
@@ -304,6 +304,7 @@ EOF
 
   # Create cron for purging
   mkdir -p /var/log/glite
+  chown $GLITE_USER:$GLITE_USER /var/log/glite
   logfile=/var/log/glite/glite-lb-purger.log
   if $LB_PURGE --help 2>&1 | grep 'target-runtime' > /dev/null; then
     purge_target_runtime_cmd='export GLITE_LB_PURGE_TARGET_RUNTIME=84600s; '