mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Minor fixes, some cleanups, and standardising on echo("x") instead of echo "x"
git-svn-id: http://www.observium.org/svn/observer/trunk@1728 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
+3
-2
@@ -89,7 +89,7 @@ if (file_exists('.svn'))
|
||||
|
||||
if ($dbu_rev+0 > $db_rev)
|
||||
{
|
||||
echo "SVN revision changed.\n";
|
||||
echo("SVN revision changed.\n");
|
||||
if($db_rev+0 < "1000") {
|
||||
echo("Running pre-revision 1000 SQL update script...\n");
|
||||
shell_exec("scripts/update-sql.php database-update-pre1000.sql");
|
||||
@@ -124,7 +124,7 @@ while ($device = mysql_fetch_array($device_query))
|
||||
mysql_query("UPDATE `devices` SET `os` = '".strtolower($device['os'])."' WHERE device_id = '".$device['device_id']."'");
|
||||
$device['os'] = strtolower($device['os']); echo("OS lowercased.");
|
||||
}
|
||||
if($config['os'][$device['os']]['group']) {$device['os_group'] = $config['os'][$device['os']]['group']; echo "(".$device['os_group'].")";}
|
||||
if($config['os'][$device['os']]['group']) {$device['os_group'] = $config['os'][$device['os']]['group']; echo("(".$device['os_group'].")");}
|
||||
|
||||
echo("\n");
|
||||
|
||||
@@ -184,6 +184,7 @@ if($discovered_devices) {
|
||||
$string = $argv[0] . " $doing " . date("F j, Y, G:i") . " - $discovered_devices devices discovered in $proctime secs";
|
||||
if ($debug) echo("$string\n");
|
||||
|
||||
# FIXME EWW
|
||||
shell_exec("echo '".$string."' >> ".$config['log_file']);
|
||||
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user