mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-07-29 15:51:18 +00:00
-Change xCAT WebUI to not recommend world writable log file as a way to let the WebUI read it
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@4102 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
@@ -306,7 +306,7 @@ function getLastLine($line){
|
||||
if($line == ''){ $line = 0; };
|
||||
$f = "/var/log/messages";
|
||||
$fp = fopen($f, 'r');
|
||||
if($fp === false){ echo "Couldn't open /var/log/messages. Hint: chmod 666 /var/log/messages might make it work.\n"; return 0; }
|
||||
if($fp === false){ echo "Couldn't open /var/log/messages. Hint: chmod 644 /var/log/messages might make it work.\n"; return 0; }
|
||||
$pos = -2;
|
||||
$t = " ";
|
||||
// number of new lines we have seen.
|
||||
|
Reference in New Issue
Block a user