mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
fix schema update calling set_lock() (#6563)
This commit is contained in:
committed by
Tony Murray
parent
4dbab407bb
commit
23fa26b2b1
@@ -15,8 +15,6 @@
|
||||
* See COPYING for more details.
|
||||
*/
|
||||
|
||||
set_lock('schema');
|
||||
|
||||
if (!isset($debug) && php_sapi_name() == 'cli') {
|
||||
// Not called from within discovery, let's load up the necessary stuff.
|
||||
$init_modules = array();
|
||||
@@ -26,6 +24,8 @@ if (!isset($debug) && php_sapi_name() == 'cli') {
|
||||
$debug = isset($options['d']);
|
||||
}
|
||||
|
||||
set_lock('schema');
|
||||
|
||||
d_echo("DB Schema update started....\n");
|
||||
|
||||
if (db_schema_is_current()) {
|
||||
|
Reference in New Issue
Block a user