]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
run sms carrier script on install
authorEvan Prodromou <evan@controlyourself.ca>
Wed, 4 Mar 2009 13:42:03 +0000 (05:42 -0800)
committerEvan Prodromou <evan@controlyourself.ca>
Wed, 4 Mar 2009 13:42:03 +0000 (05:42 -0800)
install.php

index 18fc362b62e6e9dce09ffe6779824538f23da1cb..3d76dace14d36835dd5fb86a3cf013af14339d38 100644 (file)
@@ -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);