remove bootstrap

This commit is contained in:
Ario
2019-09-27 09:36:42 +02:00
parent 89dfd2d547
commit ecad33e761

View File

@@ -104,16 +104,16 @@ if ($current['height']==1) {
echo "Downloading the blockchain dump from arionum.info\n";
$arofile=__DIR__ . '/tmp/aro.sql';
if (file_exists("/usr/bin/curl")) {
system("/usr/bin/curl -o $arofile 'https://arionum.info/dump/aro.sql'", $ret);
// system("/usr/bin/curl -o $arofile 'https://arionum.info/dump/aro.sql'", $ret);
} elseif (file_exists("/usr/bin/wget")) {
system("/usr/bin/wget -O $arofile 'https://arionum.info/dump/aro.sql'", $ret);
// system("/usr/bin/wget -O $arofile 'https://arionum.info/dump/aro.sql'", $ret);
} else {
die("/usr/bin/curl and /usr/bin/wget not installed or inaccessible. Please install either of them.");
}
echo "Importing the blockchain dump\n";
system("mysql -h ".escapeshellarg($db_host)." -u ".escapeshellarg($_config['db_user'])." -p".escapeshellarg($_config['db_pass'])." ".escapeshellarg($db_name). " < ".$arofile);
// system("mysql -h ".escapeshellarg($db_host)." -u ".escapeshellarg($_config['db_user'])." -p".escapeshellarg($_config['db_pass'])." ".escapeshellarg($db_name). " < ".$arofile);
echo "Bootstrapping completed. Waiting 2mins for the tables to be unlocked.\n";
while (1) {