mirror of
https://github.com/stylersnico/librenms.git
synced 2026-08-01 16:26:55 +02: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;
|
$insert = 0;
|
||||||
|
|
||||||
if ($db_rev = @dbFetchCell('SELECT version FROM `dbSchema` ORDER BY version DESC LIMIT 1')) {
|
if ($db_rev = @dbFetchCell('SELECT version FROM `dbSchema` ORDER BY version DESC LIMIT 1')) {
|
||||||
|
|||||||
Reference in New Issue
Block a user