mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
bail out if we can't get a lock on schema_update
This commit is contained in:
@@ -31,6 +31,11 @@ if (!isset($debug)) {
|
||||
}
|
||||
}
|
||||
|
||||
if (!dbGetLock('schema_update')) {
|
||||
echo "Schema update already in progress. Exiting";
|
||||
exit(1);
|
||||
}
|
||||
|
||||
$insert = 0;
|
||||
|
||||
if ($db_rev = @dbFetchCell('SELECT version FROM `dbSchema` ORDER BY version DESC LIMIT 1')) {
|
||||
|
Reference in New Issue
Block a user