Rearranged import to be last due to startup delay on MariaDB

This commit is contained in:
Marwolf
2018-07-13 20:55:11 -04:00
parent 467d1a34b7
commit dd525b83e0
3 changed files with 26 additions and 16 deletions

4
Import_Databases_Linux.sh Executable file
View File

@@ -0,0 +1,4 @@
#!/bin/bash
sudo make import
sudo make import-wiki

View File

@@ -0,0 +1,6 @@
@echo off
echo:
Windows\make import-windows
Windows\make import-windows-wiki
echo:

View File

@@ -161,17 +161,17 @@ if [ "$choice" == "1" ]; then
sudo make clone-game sudo make clone-game
echo "" echo ""
echo "" echo ""
echo "Importing the databases."
echo ""
sudo make import
echo ""
echo ""
echo "Creating the client cache in your home folder." echo "Creating the client cache in your home folder."
echo "" echo ""
mkdir ~/OpenRSC mkdir ~/OpenRSC
unzip -o Game/client/cache.zip -d ~/OpenRSC unzip -o Game/client/cache.zip -d ~/OpenRSC
echo "" echo ""
echo "" echo ""
echo "Importing the databases."
echo ""
sudo make import
echo ""
echo ""
echo "Open RSC setup complete!" echo "Open RSC setup complete!"
echo "" echo ""
exit exit
@@ -210,17 +210,17 @@ elif [ "$choice" == "2" ]; then
sudo make clone-website sudo make clone-website
echo "" echo ""
echo "" echo ""
echo "Importing the databases."
echo ""
sudo make import
echo ""
echo ""
echo "Creating the client cache in your home folder." echo "Creating the client cache in your home folder."
echo "" echo ""
mkdir ~/OpenRSC mkdir ~/OpenRSC
unzip -o Game/client/cache.zip -d ~/OpenRSC unzip -o Game/client/cache.zip -d ~/OpenRSC
echo "" echo ""
echo "" echo ""
echo "Importing the databases in 15 seconds."
echo ""
sudo make import
echo ""
echo ""
echo "Open RSC setup complete!" echo "Open RSC setup complete!"
echo "" echo ""
exit exit
@@ -268,6 +268,12 @@ elif [ "$choice" == "3" ]; then
unzip -o Website/Wiki/openrsc_wiki.sql.zip -d Website/Wiki unzip -o Website/Wiki/openrsc_wiki.sql.zip -d Website/Wiki
echo "" echo ""
echo "" echo ""
echo "Creating the client cache in your home folder."
echo ""
mkdir ~/OpenRSC
unzip -o Game/client/cache.zip -d ~/OpenRSC
echo ""
echo ""
echo "Importing the game, forum, and wiki databases." echo "Importing the game, forum, and wiki databases."
echo "" echo ""
sudo make import sudo make import
@@ -275,12 +281,6 @@ elif [ "$choice" == "3" ]; then
sudo make import-wiki sudo make import-wiki
echo "" echo ""
echo "" echo ""
echo "Creating the client cache in your home folder."
echo ""
mkdir ~/OpenRSC
unzip -o Game/client/cache.zip -d ~/OpenRSC
echo ""
echo ""
echo "Open RSC setup complete!" echo "Open RSC setup complete!"
echo "" echo ""
exit exit