From e7fc92e231afd916a87d760d92413c0307b37189 Mon Sep 17 00:00:00 2001 From: SimonFair <39065407+SimonFair@users.noreply.github.com> Date: Sun, 23 Jul 2023 08:28:49 +0100 Subject: [PATCH] Check if rebuild is running. --- emhttp/plugins/dynamix/include/SysDrivers.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/emhttp/plugins/dynamix/include/SysDrivers.php b/emhttp/plugins/dynamix/include/SysDrivers.php index 9976e7863..9a06aa556 100644 --- a/emhttp/plugins/dynamix/include/SysDrivers.php +++ b/emhttp/plugins/dynamix/include/SysDrivers.php @@ -31,10 +31,12 @@ $arrModtoPlg = json_decode(file_get_contents("/tmp/modulestoplg.json") ,TRUE) ; switch ($_POST['table']) { - case 't1create': + case 't1create': + if (is_file("/tmp/sysdrvbuild.running")) break ; + touch("/tmp/sysdrvbuild.running") ; modtoplg() ; createlist() ; - + unlink("/tmp/sysdrvbuild.running") ; break; case 't1load':