From: Evan Prodromou <evan@controlyourself.ca>
Date: Wed, 4 Mar 2009 13:42:03 +0000 (-0800)
Subject: run sms carrier script on install
X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=18f7749995c2fb4281839df8f8aa2b0a0c545260;p=quix0rs-gnu-social.git

run sms carrier script on install
---

diff --git a/install.php b/install.php
index 18fc362b62..3d76dace14 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);