mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-28 00:24:21 +02:00
allow sql update to be run from commandline, remove now-bogus comment from menubar
git-svn-id: http://www.observium.org/svn/observer/trunk@2873 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -11,6 +11,24 @@
|
||||
* See COPYING for more details.
|
||||
*/
|
||||
|
||||
if (!isset($debug))
|
||||
{
|
||||
# Not called from within discovery, let's load up the necessary stuff.
|
||||
|
||||
include("config.php");
|
||||
include("includes/functions.php");
|
||||
|
||||
$options = getopt("d");
|
||||
if (isset($options['d']))
|
||||
{
|
||||
$debug = TRUE;
|
||||
}
|
||||
else
|
||||
{
|
||||
$debug = FALSE;
|
||||
}
|
||||
}
|
||||
|
||||
if ($db_rev = @dbFetchCell("SELECT version FROM `dbSchema`")) {} else
|
||||
{
|
||||
$db_rev = 0;
|
||||
|
||||
Reference in New Issue
Block a user