summaryrefslogtreecommitdiff
path: root/install.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2009-03-04 05:42:03 -0800
committerEvan Prodromou <evan@controlyourself.ca>2009-03-04 05:42:03 -0800
commit18f7749995c2fb4281839df8f8aa2b0a0c545260 (patch)
treeb9d6d7fb72ce234d8dd6a49d457635ae525b9484 /install.php
parentc0115bf3bc8957fd2db2dd135ad885ed1b8d6158 (diff)
run sms carrier script on install
Diffstat (limited to 'install.php')
-rw-r--r--install.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/install.php b/install.php
index 18fc362b6..3d76dace1 100644
--- a/install.php
+++ b/install.php
@@ -152,6 +152,13 @@ function handlePost()
showForm();
return;
}
+ updateStatus("Adding SMS carrier data to database...");
+ $res = runDbScript(INSTALLDIR.'/db/sms_carrier.sql', $conn);
+ if ($res === false) {
+ updateStatus("Can't run SMS carrier script.", true);
+ showForm();
+ return;
+ }
updateStatus("Writing config file...");
$sqlUrl = "mysqli://$username:$password@$host/$database";
$res = writeConf($sitename, $sqlUrl);