Commit c2336d81df9449c662563eaa0366fdd1bf387a22

Authored by Paul Barrett
1 parent 5b81ca30

Commented out code which changes ownership of log directory to nobody:root

committed by: Paul barrett

Reviewed by: Prince Mbekwa
Showing 1 changed file with 3 additions and 0 deletions
bin/scheduler.php
@@ -51,6 +51,8 @@ if(file_exists($lock)){ @@ -51,6 +51,8 @@ if(file_exists($lock)){
51 exit(0); 51 exit(0);
52 } 52 }
53 53
  54 +// NOTE commented out because it was causing problems with the new locations in KnowledgeTree 3.7
  55 +/*
54 // If this is *nix and we are root then make sure file permisions are correct 56 // If this is *nix and we are root then make sure file permisions are correct
55 if(!OS_WINDOWS && (get_current_user() == 'root')) 57 if(!OS_WINDOWS && (get_current_user() == 'root'))
56 { 58 {
@@ -62,6 +64,7 @@ if(!OS_WINDOWS && (get_current_user() == 'root')) @@ -62,6 +64,7 @@ if(!OS_WINDOWS && (get_current_user() == 'root'))
62 $default->log->error('Scheduler: can\'t set owner to nobody - '.$e); 64 $default->log->error('Scheduler: can\'t set owner to nobody - '.$e);
63 } 65 }
64 } 66 }
  67 +*/
65 68
66 /* ** Set up functions ** */ 69 /* ** Set up functions ** */
67 70