migrate update/preconfig to a more OOP way and remove unnecessary file/dir complexity

Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann
2022-05-01 16:48:43 +02:00
parent 1557482d17
commit c59c5efc11
14 changed files with 219 additions and 168 deletions

View File

@@ -24,7 +24,7 @@
*/
use Froxlor\Froxlor;
use Froxlor\Filedir;
use Froxlor\FileDir;
use Froxlor\FroxlorLogger;
use Froxlor\UI\Response;
use Froxlor\Database\IntegrityCheck;
@@ -55,7 +55,7 @@ if (Froxlor::isFroxlor()) {
$update_tasks = [];
$task_counter = 0;
include_once(FileDir::makeCorrectFile(dirname(__FILE__) . '/updates/froxlor/0.11/update_0.11.inc.php'));
include_once(FileDir::makeCorrectFile(dirname(__FILE__) . '/updates/froxlor/update_0.11.inc.php'));
// Check Froxlor - database integrity (only happens after all updates are done, so we know the db-layout is okay)
Update::showUpdateStep("Checking database integrity");