summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--install.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/install.php b/install.php
index 29d909417..fbfd5e4d1 100644
--- a/install.php
+++ b/install.php
@@ -189,6 +189,13 @@ function handlePost()
showForm();
return;
}
+ updateStatus("Adding notice source data to database...");
+ $res = runDbScript(INSTALLDIR.'/db/notice_source.sql', $conn);
+ if ($res === false) {
+ updateStatus("Can't run notice source script.", true);
+ showForm();
+ return;
+ }
updateStatus("Writing config file...");
$sqlUrl = "mysqli://$username:$password@$host/$database";
$res = writeConf($sitename, $sqlUrl);