Fix possible Setup bug where it sometimes doesnt create the config.php and moves on. The hopeful fix is after creating config.php, sleep for 2 seconds which will wait for the file to be written fully to the filesystem before moving ahead. This issue could arrise with slow disks

This commit is contained in:
johnnyq 2023-03-01 11:16:53 -05:00
parent b7c855a67d
commit 5114c1acc9
1 changed files with 2 additions and 0 deletions

View File

@ -806,6 +806,8 @@ if (isset($_POST['add_database'])) {
file_put_contents("config.php", $new_config);
sleep(2);
include("config.php");
// Name of the file