From f1b18d0f3082b408187b111796b50ba4d6b0896e Mon Sep 17 00:00:00 2001 From: Joe Prochazka Date: Fri, 22 Jun 2018 12:41:49 -0400 Subject: [PATCH] Moved chmod command to proper place. --- build/portal/html/install/index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build/portal/html/install/index.php b/build/portal/html/install/index.php index 30fa523..7ee2b23 100644 --- a/build/portal/html/install/index.php +++ b/build/portal/html/install/index.php @@ -354,12 +354,12 @@ EOF; break; } + $dbh = $common->pdoOpen(); + // Set permissions on SQLite file. if ($_POST['driver'] == "sqlite") { chmod($_SERVER['DOCUMENT_ROOT'].DIRECTORY_SEPARATOR."data".DIRECTORY_SEPARATOR."portal.sqlite", 0666); } - - $dbh = $common->pdoOpen(); $sth = $dbh->prepare($administratorsSql); $sth->execute();