forked from GNUsocial/gnu-social
add notice source data on install
This commit is contained in:
parent
f53b6470cf
commit
07efccd7ef
@ -189,6 +189,13 @@ function handlePost()
|
|||||||
showForm();
|
showForm();
|
||||||
return;
|
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...");
|
updateStatus("Writing config file...");
|
||||||
$sqlUrl = "mysqli://$username:$password@$host/$database";
|
$sqlUrl = "mysqli://$username:$password@$host/$database";
|
||||||
$res = writeConf($sitename, $sqlUrl);
|
$res = writeConf($sitename, $sqlUrl);
|
||||||
|
Loading…
Reference in New Issue
Block a user