From 20e16a0daccedf1c501fe4b0075a4f31fbf27b13 Mon Sep 17 00:00:00 2001 From: Killesreiter Volker Date: Wed, 28 Aug 2024 13:40:08 +0200 Subject: [PATCH] remove settings file --- BackendCommands.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/BackendCommands.php b/BackendCommands.php index de53417..eb824b1 100644 --- a/BackendCommands.php +++ b/BackendCommands.php @@ -362,9 +362,13 @@ public function createTestingDump() $this->process(['php', 'core/scripts/db-tools.php', 'dump-database-d8-mysql'], $this->drupalRootDirectory()); + // Cleanup settings file. if (!empty($tmpName)) { rename($tmpName, $defaultSettingsFile); } + else { + unlink($defaultSettingsFile); + } } /**