Verbose output sent to logs, permissions set
0
.gitignore
vendored
Normal file → Executable file
0
.travis.yml
Normal file → Executable file
@@ -7,6 +7,6 @@
|
|||||||
# curl -sSL https://raw.githubusercontent.com/Open-RSC/Docker-Home/master/Linux_Cloner.sh | bash
|
# curl -sSL https://raw.githubusercontent.com/Open-RSC/Docker-Home/master/Linux_Cloner.sh | bash
|
||||||
|
|
||||||
cd /
|
cd /
|
||||||
sudo git clone https://github.com/Marwolf/Docker-Home.git
|
sudo git clone https://github.com/Open-RSC/Docker-Home.git
|
||||||
cd /Docker-Home
|
cd /Docker-Home
|
||||||
"./Linux_Installer.sh"
|
"./Linux_Installer.sh"
|
||||||
|
|||||||
@@ -1,16 +1,28 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
exec 0</dev/tty
|
||||||
|
|
||||||
|
# Open RSC: A replica RSC private server framework
|
||||||
|
#
|
||||||
|
# Installs and updates Open RSC
|
||||||
|
#
|
||||||
|
# Install with this command (from your Linux machine):
|
||||||
|
#
|
||||||
|
# curl -sSL https://raw.githubusercontent.com/Open-RSC/Docker-Home/master/Linux_Cloner.sh | bash
|
||||||
|
|
||||||
source .env
|
source .env
|
||||||
|
|
||||||
|
rm updater.log
|
||||||
|
touch updater.log && chmod 777 updater.log | tee updater.log | &>/dev/null
|
||||||
|
|
||||||
# Check for any updates to the game server
|
# Check for any updates to the game server
|
||||||
clear
|
clear
|
||||||
echo "Pulling recent updates from the Open-RSC Game repository."
|
echo "Pulling recent updates from the Open-RSC Game repository."
|
||||||
cd Game
|
cd Game
|
||||||
sudo git pull &>/dev/null
|
sudo git pull | tee -a ../updater.log &>/dev/null
|
||||||
|
|
||||||
# Verifies permissions are set correctly
|
# Verifies permissions are set correctly
|
||||||
sudo chmod -R 777 Game &>/dev/null
|
sudo chmod -R 777 Game | tee -a ../updater.log &>/dev/null
|
||||||
sudo setfacl -m user:$USER:rw /var/run/docker.sock &>/dev/null
|
sudo setfacl -m user:$USER:rw /var/run/docker.sock | tee -a ../updater.log &>/dev/null
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
clear
|
clear
|
||||||
@@ -28,11 +40,10 @@ sudo nano .env
|
|||||||
sudo nano Game/client/src/org/openrsc/client/Config.java
|
sudo nano Game/client/src/org/openrsc/client/Config.java
|
||||||
sudo nano Game/Launcher/src/Main.java
|
sudo nano Game/Launcher/src/Main.java
|
||||||
sudo nano Game/server/config/config.xml
|
sudo nano Game/server/config/config.xml
|
||||||
sudo nano etc/ghost/config.production.json
|
|
||||||
|
|
||||||
clear
|
clear
|
||||||
echo "Restarting Ghost container"
|
echo "Restarting Ghost container"
|
||||||
sudo docker stop ghost && sudo docker start ghost &>/dev/null
|
sudo docker stop ghost && sudo docker start ghost | tee -a updater.log &>/dev/null
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$edit" == "2" ]; then
|
if [ "$edit" == "2" ]; then
|
||||||
@@ -42,34 +53,33 @@ fi
|
|||||||
# Server
|
# Server
|
||||||
cd Game
|
cd Game
|
||||||
clear
|
clear
|
||||||
echo "Compiling the game server. Any errors will be in compile.log"
|
echo "Compiling the game server. Any errors will be in updater.log"
|
||||||
touch ../compile.log && chmod 777 ../compile.log &>/dev/null
|
sudo ant -f "server/build.xml" compile | tee ../updater.log &>/dev/null
|
||||||
sudo ant -f "server/build.xml" compile | tee ../compile.log &>/dev/null
|
|
||||||
|
|
||||||
# Client
|
# Client
|
||||||
clear
|
clear
|
||||||
echo "Compiling and preparing the game client. Any errors will be in compile.log"
|
echo "Compiling and preparing the game client. Any errors will be in updater.log"
|
||||||
sudo ant -f "client/build.xml" compile | tee -a ../compile.log &>/dev/null
|
sudo ant -f "client/build.xml" compile | tee -a ../updater.log &>/dev/null
|
||||||
cd client
|
cd client
|
||||||
sudo zip -r "client.zip" "Open_RSC_Client.jar" &>/dev/null
|
sudo zip -r "client.zip" "Open_RSC_Client.jar" | tee -a ../../updater.log &>/dev/null
|
||||||
cd ../
|
cd ../
|
||||||
yes | sudo cp -rf "client/client.zip" "../Website/downloads/" &>/dev/null
|
yes | sudo cp -rf "client/client.zip" "../Website/downloads/" | tee -a ../updater.log &>/dev/null
|
||||||
sudo rm "client/client.zip" &>/dev/null
|
sudo rm "client/client.zip" | tee -a ../updater.log &>/dev/null
|
||||||
|
|
||||||
# Launcher
|
# Launcher
|
||||||
clear
|
clear
|
||||||
echo "Compiling and preparing the game launcher. Any errors will be in compile.log"
|
echo "Compiling and preparing the game launcher. Any errors will be in updater.log"
|
||||||
sudo ant -f "Launcher/build.xml" jar | tee -a ../compile.log &>/dev/null
|
sudo ant -f "Launcher/build.xml" jar | tee -a ../updater.log &>/dev/null
|
||||||
yes | sudo cp -rf "Launcher/dist/Open_RSC_Launcher.jar" "../Website/downloads/" &>/dev/null
|
yes | sudo cp -rf "Launcher/dist/Open_RSC_Launcher.jar" "../Website/downloads/" | tee -a updater.log &>/dev/null
|
||||||
|
|
||||||
# Cache
|
# Cache
|
||||||
clear
|
clear
|
||||||
echo "Preparing the cache."
|
echo "Preparing the cache."
|
||||||
yes | sudo cp -rf "client/cache.zip" "../Website/downloads/" &>/dev/null
|
yes | sudo cp -rf "client/cache.zip" "../Website/downloads/" | tee -a ../updater.log &>/dev/null
|
||||||
cd ..
|
cd ..
|
||||||
sudo rm Website/downloads/hashes.txt &>/dev/null
|
sudo rm Website/downloads/hashes.txt | tee -a updater.log &>/dev/null
|
||||||
md5sum Website/downloads/client.zip | grep ^[a-zA-Z0-9]* | awk '{print "client="$1}' | sudo tee -a Website/downloads/hashes.txt &>/dev/null
|
md5sum Website/downloads/client.zip | grep ^[a-zA-Z0-9]* | awk '{print "client="$1}' | sudo tee -a Website/downloads/hashes.txt | tee -a updater.log &>/dev/null
|
||||||
md5sum Website/downloads/cache.zip | grep ^[a-zA-Z0-9]* | awk '{print "cache="$1}' | sudo tee -a Website/downloads/hashes.txt &>/dev/null
|
md5sum Website/downloads/cache.zip | grep ^[a-zA-Z0-9]* | awk '{print "cache="$1}' | sudo tee -a Website/downloads/hashes.txt | tee -a updater.log &>/dev/null
|
||||||
|
|
||||||
# Database
|
# Database
|
||||||
clear
|
clear
|
||||||
@@ -77,4 +87,4 @@ echo "Preparing the database."
|
|||||||
docker exec -i $(sudo docker-compose ps -q mysqldb) mysql -u"$MYSQL_ROOT_USER" -p"$MYSQL_ROOT_PASSWORD" < Game/Databases/openrsc_config.sql 2>/dev/null
|
docker exec -i $(sudo docker-compose ps -q mysqldb) mysql -u"$MYSQL_ROOT_USER" -p"$MYSQL_ROOT_PASSWORD" < Game/Databases/openrsc_config.sql 2>/dev/null
|
||||||
|
|
||||||
# Run the game server in a detached screen
|
# Run the game server in a detached screen
|
||||||
sudo ./Linux_Run_Production_Server.sh
|
./Linux_Run_Production_Server.sh
|
||||||
|
|||||||
@@ -9,6 +9,9 @@ exec 0</dev/tty
|
|||||||
#
|
#
|
||||||
# curl -sSL https://raw.githubusercontent.com/Open-RSC/Docker-Home/master/Linux_Cloner.sh | bash
|
# curl -sSL https://raw.githubusercontent.com/Open-RSC/Docker-Home/master/Linux_Cloner.sh | bash
|
||||||
|
|
||||||
|
rm installer.log
|
||||||
|
touch installer.log && chmod 777 installer.log | tee installer.log &>/dev/null
|
||||||
|
|
||||||
choice=""
|
choice=""
|
||||||
RED=`tput setaf 1`
|
RED=`tput setaf 1`
|
||||||
GREEN=`tput setaf 2`
|
GREEN=`tput setaf 2`
|
||||||
@@ -45,41 +48,43 @@ if [ "$install" == "1" ]; then
|
|||||||
sudo dpkg-reconfigure tzdata
|
sudo dpkg-reconfigure tzdata
|
||||||
|
|
||||||
clear
|
clear
|
||||||
echo "Verifying the basics are installed. Please wait."
|
echo "Installing required software. Please wait, this will take a while."
|
||||||
sudo apt-get update &>/dev/null
|
echo ""
|
||||||
sudo apt-get install software-properties-common -y &>/dev/null
|
echo "Debug information is being sent to installer.log"
|
||||||
sudo add-apt-repository ppa:certbot/certbot -y &>/dev/null
|
sudo apt-get update | tee -a installer.log &>/dev/null
|
||||||
sudo apt-get update &>/dev/null
|
sudo apt-get install software-properties-common -y | tee -a installer.log &>/dev/null
|
||||||
sudo apt-get install certbot screen zip fail2ban unzip git build-essential apt-transport-https ca-certificates curl software-properties-common -y &>/dev/null
|
sudo add-apt-repository ppa:certbot/certbot -y | tee -a installer.log &>/dev/null
|
||||||
|
sudo apt-get update | tee -a installer.log &>/dev/null
|
||||||
|
sudo apt-get install certbot screen zip fail2ban unzip git build-essential apt-transport-https ca-certificates curl software-properties-common -y | tee -a installer.log &>/dev/null
|
||||||
|
|
||||||
clear
|
clear
|
||||||
echo "Attempting to install Docker now."
|
echo "Attempting to install Docker now."
|
||||||
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - &>/dev/null
|
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | tee -a installer.log &>/dev/null
|
||||||
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable" &>/dev/null
|
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable" | tee -a installer.log &>/dev/null
|
||||||
sudo apt-get update &>/dev/null && sudo apt-get install docker-ce docker-compose -y &>/dev/null
|
sudo apt-get update | tee -a installer.log &>/dev/null && sudo apt-get install docker-ce docker-compose -y | tee -a installer.log &>/dev/null
|
||||||
|
|
||||||
clear
|
clear
|
||||||
echo "Setting Docker to have the correct storage driver and reloading service."
|
echo "Setting Docker to have the correct storage driver and reloading service."
|
||||||
echo '{
|
echo '{
|
||||||
"storage-driver": "devicemapper"
|
"storage-driver": "devicemapper"
|
||||||
}' | sudo tee /etc/docker/daemon.json && sudo service docker restart &>/dev/null
|
}' | sudo tee /etc/docker/daemon.json && sudo service docker restart | tee -a installer.log &>/dev/null
|
||||||
|
|
||||||
clear
|
clear
|
||||||
echo "Configuring UFW."
|
echo "Configuring UFW."
|
||||||
sudo ufw allow 22/tcp &>/dev/null && sudo ufw allow 80/tcp &>/dev/null && sudo ufw allow 8080/tcp &>/dev/null && sudo ufw allow 443/tcp &>/dev/null && sudo ufw allow 9000/tcp &>/dev/null && sudo ufw allow 53595/tcp &>/dev/null && sudo ufw deny 3306/tcp &>/dev/null
|
sudo ufw allow 22/tcp | tee -a installer.log &>/dev/null && sudo ufw allow 80/tcp | tee -a installer.log &>/dev/null && sudo ufw allow 8080/tcp | tee -a installer.log &>/dev/null && sudo ufw allow 443/tcp | tee -a installer.log &>/dev/null && sudo ufw allow 9000/tcp | tee -a installer.log &>/dev/null && sudo ufw allow 53595/tcp | tee -a installer.log &>/dev/null && sudo ufw deny 3306/tcp | tee -a installer.log &>/dev/null
|
||||||
sudo sed -i 's/DEFAULT_FORWARD_POLICY="DENY"/DEFAULT_FORWARD_POLICY="ACCEPT"/g' /etc/default/ufw &>/dev/null
|
sudo sed -i 's/DEFAULT_FORWARD_POLICY="DENY"/DEFAULT_FORWARD_POLICY="ACCEPT"/g' /etc/default/ufw | tee -a installer.log &>/dev/null
|
||||||
sudo ufw reload &>/dev/null
|
sudo ufw reload | tee -a installer.log &>/dev/null
|
||||||
sudo ufw --force enable &>/dev/null
|
sudo ufw --force enable | tee -a installer.log &>/dev/null
|
||||||
|
|
||||||
clear
|
clear
|
||||||
echo "Installing Oracle Java JDK 8 and other related packages."
|
echo "Installing Oracle Java JDK 8 and other related packages."
|
||||||
sudo apt-get remove -y openjdk-6-jre default-jre default-jre-headless &>/dev/null
|
sudo apt-get remove -y openjdk-6-jre default-jre default-jre-headless | tee -a installer.log &>/dev/null
|
||||||
sudo add-apt-repository -y ppa:webupd8team/java &>/dev/null
|
sudo add-apt-repository -y ppa:webupd8team/java | tee -a installer.log &>/dev/null
|
||||||
sudo apt update &>/dev/null
|
sudo apt update | tee -a installer.log &>/dev/null
|
||||||
sudo apt install -y openjfx ant &>/dev/null
|
sudo apt install -y openjfx ant | tee -a installer.log &>/dev/null
|
||||||
echo "oracle-java8-installer shared/accepted-oracle-license-v1-1 select true" | sudo debconf-set-selections &>/dev/null
|
echo "oracle-java8-installer shared/accepted-oracle-license-v1-1 select true" | sudo debconf-set-selections | tee -a installer.log &>/dev/null
|
||||||
sudo apt-get install -y oracle-java8-installer &>/dev/null
|
sudo apt-get install -y oracle-java8-installer | tee -a installer.log &>/dev/null
|
||||||
sudo apt install oracle-java8-set-default &>/dev/null
|
sudo apt install oracle-java8-set-default | tee -a installer.log &>/dev/null
|
||||||
fi
|
fi
|
||||||
# Ubuntu OS <===================================================
|
# Ubuntu OS <===================================================
|
||||||
|
|
||||||
@@ -96,21 +101,21 @@ if [ "$install" == "1" ]; then
|
|||||||
|
|
||||||
# Mac Brew ===================================================>
|
# Mac Brew ===================================================>
|
||||||
if [ "$brew" == "1" ]; then
|
if [ "$brew" == "1" ]; then
|
||||||
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" &>/dev/null
|
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | tee -a installer.log &>/dev/null
|
||||||
brew install git &>/dev/null
|
brew install git | tee -a installer.log &>/dev/null
|
||||||
fi
|
fi
|
||||||
# Mac Brew <===================================================
|
# Mac Brew <===================================================
|
||||||
|
|
||||||
clear
|
clear
|
||||||
echo "Verifying the basics are installed."
|
echo "Verifying the basics are installed."
|
||||||
brew install unzip wget git curl zip screen &>/dev/null
|
brew install unzip wget git curl zip screen | tee -a installer.log &>/dev/null
|
||||||
brew tap AdoptOpenJDK/openjdk &>/dev/null
|
brew tap AdoptOpenJDK/openjdk | tee -a installer.log &>/dev/null
|
||||||
brew install adoptopenjdk-openjdk8 ant openjfx &>/dev/null
|
brew install adoptopenjdk-openjdk8 ant openjfx | tee -a installer.log &>/dev/null
|
||||||
|
|
||||||
clear
|
clear
|
||||||
echo "Downloading the Docker for Mac installer."
|
echo "Downloading the Docker for Mac installer."
|
||||||
wget https://download.docker.com/mac/stable/Docker.dmg &>/dev/null
|
wget https://download.docker.com/mac/stable/Docker.dmg | tee -a installer.log &>/dev/null
|
||||||
hdiutil attach Docker.dmg &>/dev/null
|
hdiutil attach Docker.dmg | tee -a installer.log &>/dev/null
|
||||||
echo ""
|
echo ""
|
||||||
echo "Please drag Docker as instructed in the popup."
|
echo "Please drag Docker as instructed in the popup."
|
||||||
echo ""
|
echo ""
|
||||||
@@ -131,7 +136,7 @@ if [ "$install" == "1" ]; then
|
|||||||
|
|
||||||
clear
|
clear
|
||||||
echo "Checking for updates to the Docker-Home repository."
|
echo "Checking for updates to the Docker-Home repository."
|
||||||
sudo git pull &>/dev/null
|
sudo git pull | tee -a installer.log &>/dev/null
|
||||||
|
|
||||||
clear
|
clear
|
||||||
echo "${RED}Open RSC Installer:${NC}
|
echo "${RED}Open RSC Installer:${NC}
|
||||||
@@ -153,26 +158,26 @@ if [ "$choice" == "1" ]; then
|
|||||||
echo "You have picked ${GREEN}set up for single player!${NC}"
|
echo "You have picked ${GREEN}set up for single player!${NC}"
|
||||||
echo ""
|
echo ""
|
||||||
echo ""
|
echo ""
|
||||||
echo "Starting up the Docker containers."
|
echo "Starting up the Docker containers. Please wait, this will take a while."
|
||||||
sudo make start-single-player &>/dev/null
|
echo ""
|
||||||
|
echo "Debug information is being sent to installer.log"
|
||||||
|
sudo make start-single-player | tee -a installer.log &>/dev/null
|
||||||
|
|
||||||
clear
|
clear
|
||||||
echo "Fetching the Game from the Open RSC git repo."
|
echo "Fetching the Game from the Open RSC git repo."
|
||||||
sudo make clone-game &>/dev/null
|
sudo make clone-game | tee -a installer.log &>/dev/null
|
||||||
sudo chmod -R 777 Game &>/dev/null
|
sudo chmod -R 777 Game | tee -a installer.log &>/dev/null
|
||||||
|
|
||||||
clear
|
clear
|
||||||
echo "Creating the client cache in your home folder."
|
echo "Creating the client cache in your home folder."
|
||||||
mkdir ~/OpenRSC &>/dev/null
|
mkdir ~/OpenRSC | tee -a installer.log &>/dev/null
|
||||||
unzip -o Game/client/cache.zip -d ~/OpenRSC &>/dev/null
|
unzip -o Game/client/cache.zip -d ~/OpenRSC | tee -a installer.log &>/dev/null
|
||||||
|
|
||||||
clear
|
clear
|
||||||
echo "Importing the game databases."
|
echo "Importing the game databases."
|
||||||
sudo make import-game &>/dev/null
|
sudo make import-game | tee -a installer.log &>/dev/null
|
||||||
|
|
||||||
clear
|
clear
|
||||||
echo "Ready to launch \"./Linux_Single_Player.sh\" - Press enter when ready."
|
|
||||||
read next
|
|
||||||
./Linux_Single_Player.sh
|
./Linux_Single_Player.sh
|
||||||
# 1. Set up for single player <===================================================
|
# 1. Set up for single player <===================================================
|
||||||
|
|
||||||
@@ -183,19 +188,20 @@ elif [ "$choice" == "2" ]; then
|
|||||||
echo ""
|
echo ""
|
||||||
echo ""
|
echo ""
|
||||||
echo "Starting up the Docker containers."
|
echo "Starting up the Docker containers."
|
||||||
sudo chmod -R 777 &>/dev/null
|
sudo chmod -R 777 . | tee -a installer.log &>/dev/null
|
||||||
sudo make start &>/dev/null
|
sudo make stop | tee -a installer.log &>/dev/null
|
||||||
|
sudo make start | tee -a installer.log &>/dev/null
|
||||||
|
|
||||||
clear
|
clear
|
||||||
echo "Fetching the Website and Game from the Open RSC git repo."
|
echo "Fetching the Website and Game from the Open RSC git repo."
|
||||||
sudo make clone-game &>/dev/null
|
sudo make clone-game | tee -a installer.log &>/dev/null
|
||||||
sudo make clone-website &>/dev/null
|
sudo make clone-website | tee -a installer.log &>/dev/null
|
||||||
sudo chmod -R 777 &>/dev/null
|
sudo chmod -R 777 . | tee -a installer.log &>/dev/null
|
||||||
|
|
||||||
clear
|
clear
|
||||||
echo "Creating the client cache in your home folder."
|
echo "Creating the client cache in your home folder."
|
||||||
mkdir ~/OpenRSC &>/dev/null
|
mkdir ~/OpenRSC | tee -a installer.log &>/dev/null
|
||||||
unzip -o Game/client/cache.zip -d ~/OpenRSC &>/dev/null
|
unzip -o Game/client/cache.zip -d ~/OpenRSC | tee -a installer.log &>/dev/null
|
||||||
|
|
||||||
clear
|
clear
|
||||||
echo "Next is manual file editing for the website domain and SQL user/pass."
|
echo "Next is manual file editing for the website domain and SQL user/pass."
|
||||||
@@ -213,20 +219,17 @@ elif [ "$choice" == "2" ]; then
|
|||||||
sudo nano Game/client/src/org/openrsc/client/Config.java
|
sudo nano Game/client/src/org/openrsc/client/Config.java
|
||||||
sudo nano Game/Launcher/src/Main.java
|
sudo nano Game/Launcher/src/Main.java
|
||||||
sudo nano Game/server/config/config.xml
|
sudo nano Game/server/config/config.xml
|
||||||
sudo nano etc/ghost/config.production.json
|
|
||||||
|
|
||||||
clear
|
clear
|
||||||
echo "Importing the databases."
|
echo "Importing the game databases."
|
||||||
sudo make import-game &>/dev/null
|
sudo make import-game | tee -a installer.log &>/dev/null
|
||||||
sudo make import-ghost &>/dev/null
|
sudo make import-ghost | tee -a installer.log &>/dev/null
|
||||||
|
|
||||||
clear
|
clear
|
||||||
echo "Restarting Ghost container."
|
echo "Restarting Ghost container."
|
||||||
sudo docker stop ghost && sudo docker start ghost &>/dev/null
|
sudo docker stop ghost && sudo docker start ghost | tee -a installer.log &>/dev/null
|
||||||
|
|
||||||
clear
|
clear
|
||||||
echo "Ready to launch \"./Linux_Fetch_Updates_Production.sh\" - Press enter when ready."
|
|
||||||
read next
|
|
||||||
./Linux_Fetch_Updates_Production.sh
|
./Linux_Fetch_Updates_Production.sh
|
||||||
# 2. Deployment for a publicly hosted server <===================================================
|
# 2. Deployment for a publicly hosted server <===================================================
|
||||||
|
|
||||||
@@ -234,7 +237,7 @@ elif [ "$choice" == "2" ]; then
|
|||||||
elif [ "$choice" == "3" ]; then
|
elif [ "$choice" == "3" ]; then
|
||||||
|
|
||||||
echo "You have picked ${GREEN}backup all SQL databases!${NC}"
|
echo "You have picked ${GREEN}backup all SQL databases!${NC}"
|
||||||
sudo make backup &>/dev/null
|
sudo make backup | tee -a installer.log &>/dev/null
|
||||||
clear
|
clear
|
||||||
echo "Done! - Press enter to return back to the menu."
|
echo "Done! - Press enter to return back to the menu."
|
||||||
read
|
read
|
||||||
@@ -247,5 +250,5 @@ else
|
|||||||
echo ""
|
echo ""
|
||||||
read
|
read
|
||||||
./Linux_Installer.sh
|
./Linux_Installer.sh
|
||||||
|
continue
|
||||||
fi
|
fi
|
||||||
# Selection <===================================================
|
|
||||||
|
|||||||
@@ -1,33 +1,45 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
exec 0</dev/tty
|
||||||
|
|
||||||
|
# Open RSC: A replica RSC private server framework
|
||||||
|
#
|
||||||
|
# Installs and updates Open RSC
|
||||||
|
#
|
||||||
|
# Install with this command (from your Linux machine):
|
||||||
|
#
|
||||||
|
# curl -sSL https://raw.githubusercontent.com/Open-RSC/Docker-Home/master/Linux_Cloner.sh | bash
|
||||||
|
|
||||||
source .env
|
source .env
|
||||||
|
|
||||||
|
rm singleplayer.log
|
||||||
|
touch singleplayer.log && chmod 777 singleplayer.log | tee -a singleplayer.log &>/dev/null
|
||||||
|
|
||||||
# Check for any updates to the game server
|
# Check for any updates to the game server
|
||||||
clear
|
clear
|
||||||
echo "Pulling recent updates from the Open-RSC Game repository."
|
echo "Pulling recent updates from the Open-RSC Game repository."
|
||||||
sudo git pull &>/dev/null
|
sudo git pull | tee -a singleplayer.log &>/dev/null
|
||||||
sudo make pull-game &>/dev/null
|
sudo make pull-game | tee -a singleplayer.log &>/dev/null
|
||||||
|
sudo chmod -R 777 Game | tee -a installer.log &>/dev/null
|
||||||
|
|
||||||
clear
|
clear
|
||||||
echo "Starting Docker containers."
|
echo "Starting Docker containers."
|
||||||
sudo make stop &>/dev/null
|
sudo make stop | tee -a singleplayer.log &>/dev/null
|
||||||
sudo make start-single-player &>/dev/null
|
sudo make start-single-player | tee -a singleplayer.log &>/dev/null
|
||||||
|
|
||||||
# Compile the game server and client
|
# Compile the game server and client
|
||||||
clear
|
clear
|
||||||
echo "Compiling the game client. Any errors will be in compile.log"
|
echo "Compiling the game client. Any errors will be in singleplayer.log"
|
||||||
touch compile.log && chmod 777 compile.log &>/dev/null
|
sudo ant -f "Game/client/build.xml" compile | tee -a singleplayer.log &>/dev/null
|
||||||
sudo ant -f "Game/client/build.xml" compile | tee compile.log &>/dev/null
|
|
||||||
|
|
||||||
clear
|
clear
|
||||||
echo "Compiling the game server. Any errors will be in compile.log"
|
echo "Compiling the game server. Any errors will be in singleplayer.log"
|
||||||
sudo ant -f "Game/server/build.xml" compile | tee -a compile.log &>/dev/null
|
sudo ant -f "Game/server/build.xml" compile | tee -a singleplayer.log &>/dev/null
|
||||||
|
|
||||||
#Create game cache
|
#Create game cache
|
||||||
clear
|
clear
|
||||||
echo "Removing old cache if exists and then extracting a fresh client cache to your home folder."
|
echo "Removing old cache if exists and then extracting a fresh client cache to your home folder."
|
||||||
sudo rm -rf ~/OpenRSC &>/dev/null
|
sudo rm -rf ~/OpenRSC | tee -a singleplayer.log &>/dev/null
|
||||||
mkdir ~/OpenRSC &>/dev/null
|
mkdir ~/OpenRSC | tee -a singleplayer.log &>/dev/null
|
||||||
unzip -o Game/client/cache.zip -d ~/OpenRSC >/dev/null
|
unzip -o Game/client/cache.zip -d ~/OpenRSC >/dev/null
|
||||||
|
|
||||||
#Import fresh version of config database
|
#Import fresh version of config database
|
||||||
@@ -38,10 +50,10 @@ sudo docker exec -i $(sudo docker-compose ps -q mysqldb) mysql -u"$MYSQL_ROOT_US
|
|||||||
#Generate updated cache files, copies them to cache folder overwriting existing
|
#Generate updated cache files, copies them to cache folder overwriting existing
|
||||||
clear
|
clear
|
||||||
echo "Generating cache .dat files from current config database and copying to client cache in your home folder."
|
echo "Generating cache .dat files from current config database and copying to client cache in your home folder."
|
||||||
sudo ant -f Game/server/build.xml npcs items objects &>/dev/null
|
sudo ant -f Game/server/build.xml npcs items objects | &>/dev/null
|
||||||
yes | cp -rf Game/server/npcs.dat ~/OpenRSC/npcs.dat &>/dev/null
|
yes | cp -rf Game/server/npcs.dat ~/OpenRSC/npcs.dat | tee -a singleplayer.log &>/dev/null
|
||||||
yes | cp -rf Game/server/objects.dat ~/OpenRSC/objects.dat &>/dev/null
|
yes | cp -rf Game/server/objects.dat ~/OpenRSC/objects.dat | tee -a singleplayer.log &>/dev/null
|
||||||
yes | cp -rf Game/server/items.dat ~/OpenRSC/items.dat &>/dev/null
|
yes | cp -rf Game/server/items.dat ~/OpenRSC/items.dat | tee -a singleplayer.log &>/dev/null
|
||||||
|
|
||||||
# Run the game client in a new window
|
# Run the game client in a new window
|
||||||
clear
|
clear
|
||||||
|
|||||||
0
Splunk/Makefile
Normal file → Executable file
0
Splunk/Start_Splunk_Windows.cmd
Normal file → Executable file
0
Splunk/Stop_Splunk_Windows.cmd
Normal file → Executable file
0
Splunk/View_Docker_Container_Logs_Windows.cmd
Normal file → Executable file
0
Splunk/docker-compose.yml
Normal file → Executable file
0
Splunk/opt-splunk-etc/empty
Normal file → Executable file
0
Splunk/opt-splunk-var/empty
Normal file → Executable file
0
Windows_Backup_Databases.cmd
Normal file → Executable file
0
Windows_Installer.cmd
Normal file → Executable file
0
Windows_Restore_Databases.cmd
Normal file → Executable file
0
Windows_Single_Player.cmd
Normal file → Executable file
0
Windows_Stop_Game_Server.cmd
Normal file → Executable file
0
docker-compose-single-player.yml
Normal file → Executable file
0
docker-compose.yml
Normal file → Executable file
0
etc/ghost/content/images/2018/08/0vytc.png
Normal file → Executable file
|
Before Width: | Height: | Size: 44 KiB After Width: | Height: | Size: 44 KiB |
0
etc/ghost/content/images/2018/08/16737510.jpg
Normal file → Executable file
|
Before Width: | Height: | Size: 4.0 KiB After Width: | Height: | Size: 4.0 KiB |
0
etc/ghost/content/images/2018/08/18274778_280580645735523_4488223525424635644_n.jpg
Normal file → Executable file
|
Before Width: | Height: | Size: 134 KiB After Width: | Height: | Size: 134 KiB |
0
etc/ghost/content/images/2018/08/2-2.png
Normal file → Executable file
|
Before Width: | Height: | Size: 151 KiB After Width: | Height: | Size: 151 KiB |
0
etc/ghost/content/images/2018/08/41124845-1-1.png
Normal file → Executable file
|
Before Width: | Height: | Size: 5.1 KiB After Width: | Height: | Size: 5.1 KiB |
0
etc/ghost/content/images/2018/08/41124845-1.png
Normal file → Executable file
|
Before Width: | Height: | Size: 5.1 KiB After Width: | Height: | Size: 5.1 KiB |
0
etc/ghost/content/images/2018/08/41124845.png
Normal file → Executable file
|
Before Width: | Height: | Size: 5.1 KiB After Width: | Height: | Size: 5.1 KiB |
0
etc/ghost/content/images/2018/08/68747470733a2f2f692e696d6775722e636f6d2f747a4c674577562e706e67-1-1.png
Normal file → Executable file
|
Before Width: | Height: | Size: 39 KiB After Width: | Height: | Size: 39 KiB |
0
etc/ghost/content/images/2018/08/68747470733a2f2f692e696d6775722e636f6d2f747a4c674577562e706e67-1.png
Normal file → Executable file
|
Before Width: | Height: | Size: 39 KiB After Width: | Height: | Size: 39 KiB |
0
etc/ghost/content/images/2018/08/68747470733a2f2f692e696d6775722e636f6d2f747a4c674577562e706e67.png
Normal file → Executable file
|
Before Width: | Height: | Size: 39 KiB After Width: | Height: | Size: 39 KiB |
0
etc/ghost/content/images/2018/08/96Uk-sa-Y6g4hkPV7d2cLdxuXQAPW6lt3mRSExWm18A.jpg
Normal file → Executable file
|
Before Width: | Height: | Size: 123 KiB After Width: | Height: | Size: 123 KiB |
0
etc/ghost/content/images/2018/08/OO6Urwx.png
Normal file → Executable file
|
Before Width: | Height: | Size: 422 KiB After Width: | Height: | Size: 422 KiB |
0
etc/ghost/content/images/2018/08/Screen-Shot-2018-08-09-at-20.48.55.png
Normal file → Executable file
|
Before Width: | Height: | Size: 784 KiB After Width: | Height: | Size: 784 KiB |
0
etc/ghost/content/images/2018/08/Screen-Shot-2018-08-09-at-22.16.42.png
Normal file → Executable file
|
Before Width: | Height: | Size: 70 KiB After Width: | Height: | Size: 70 KiB |
0
etc/ghost/content/images/2018/08/Screen-Shot-2018-08-09-at-22.41.24-1.png
Normal file → Executable file
|
Before Width: | Height: | Size: 468 KiB After Width: | Height: | Size: 468 KiB |
0
etc/ghost/content/images/2018/08/Screen-Shot-2018-08-09-at-22.41.24.png
Normal file → Executable file
|
Before Width: | Height: | Size: 468 KiB After Width: | Height: | Size: 468 KiB |
0
etc/ghost/content/images/2018/08/Screen-Shot-2018-08-10-at-00.31.24.png
Normal file → Executable file
|
Before Width: | Height: | Size: 648 KiB After Width: | Height: | Size: 648 KiB |
0
etc/ghost/content/images/2018/08/Screen-Shot-2018-08-16-at-15.48.28.png
Normal file → Executable file
|
Before Width: | Height: | Size: 363 KiB After Width: | Height: | Size: 363 KiB |
0
etc/ghost/content/images/2018/08/capes.png
Normal file → Executable file
|
Before Width: | Height: | Size: 87 KiB After Width: | Height: | Size: 87 KiB |
0
etc/ghost/content/images/2018/08/cat.jpg
Normal file → Executable file
|
Before Width: | Height: | Size: 45 KiB After Width: | Height: | Size: 45 KiB |
0
etc/ghost/content/images/2018/08/dragons.png
Normal file → Executable file
|
Before Width: | Height: | Size: 172 KiB After Width: | Height: | Size: 172 KiB |
0
etc/ghost/content/images/2018/08/homework.jpg
Normal file → Executable file
|
Before Width: | Height: | Size: 88 KiB After Width: | Height: | Size: 88 KiB |
0
etc/ghost/content/images/2018/08/lol.png
Normal file → Executable file
|
Before Width: | Height: | Size: 169 KiB After Width: | Height: | Size: 169 KiB |
0
etc/ghost/content/images/2018/08/map.png
Normal file → Executable file
|
Before Width: | Height: | Size: 322 KiB After Width: | Height: | Size: 322 KiB |
0
etc/ghost/content/images/2018/08/n00b.png
Normal file → Executable file
|
Before Width: | Height: | Size: 371 KiB After Width: | Height: | Size: 371 KiB |
0
etc/ghost/content/images/2018/08/plcLv.png
Normal file → Executable file
|
Before Width: | Height: | Size: 8.4 KiB After Width: | Height: | Size: 8.4 KiB |
0
etc/ghost/content/images/2018/08/project-1.png
Normal file → Executable file
|
Before Width: | Height: | Size: 334 KiB After Width: | Height: | Size: 334 KiB |
0
etc/ghost/content/images/2018/08/travis.png
Normal file → Executable file
|
Before Width: | Height: | Size: 52 KiB After Width: | Height: | Size: 52 KiB |
0
etc/ghost/content/images/2018/08/wod-1.png
Normal file → Executable file
|
Before Width: | Height: | Size: 693 KiB After Width: | Height: | Size: 693 KiB |
0
etc/ghost/content/images/2018/08/wod.png
Normal file → Executable file
|
Before Width: | Height: | Size: 693 KiB After Width: | Height: | Size: 693 KiB |
0
etc/ghost/content/settings/routes.yaml
Normal file → Executable file
0
etc/ghost/content/themes/Casper/.editorconfig
Normal file → Executable file
0
etc/ghost/content/themes/Casper/.github/ISSUE_TEMPLATE.md
vendored
Normal file → Executable file
0
etc/ghost/content/themes/Casper/.gitignore
vendored
Normal file → Executable file
0
etc/ghost/content/themes/Casper/.travis.yml
Normal file → Executable file
0
etc/ghost/content/themes/Casper/LICENSE
Normal file → Executable file
0
etc/ghost/content/themes/Casper/README.md
Normal file → Executable file
0
etc/ghost/content/themes/Casper/assets/built/global.css
Normal file → Executable file
0
etc/ghost/content/themes/Casper/assets/built/global.css.map
Normal file → Executable file
0
etc/ghost/content/themes/Casper/assets/built/screen.css
Normal file → Executable file
0
etc/ghost/content/themes/Casper/assets/built/screen.css.map
Normal file → Executable file
0
etc/ghost/content/themes/Casper/assets/css/.csscomb.json
Normal file → Executable file
0
etc/ghost/content/themes/Casper/assets/css/csscomb.json
Normal file → Executable file
0
etc/ghost/content/themes/Casper/assets/css/global.css
Normal file → Executable file
0
etc/ghost/content/themes/Casper/assets/css/screen.css
Normal file → Executable file
0
etc/ghost/content/themes/Casper/assets/js/infinitescroll.js
Normal file → Executable file
0
etc/ghost/content/themes/Casper/assets/js/jquery.fitvids.js
Normal file → Executable file
0
etc/ghost/content/themes/Casper/assets/screenshot-desktop.jpg
Normal file → Executable file
|
Before Width: | Height: | Size: 106 KiB After Width: | Height: | Size: 106 KiB |
0
etc/ghost/content/themes/Casper/assets/screenshot-mobile.jpg
Normal file → Executable file
|
Before Width: | Height: | Size: 102 KiB After Width: | Height: | Size: 102 KiB |
0
etc/ghost/content/themes/Casper/author.hbs
Normal file → Executable file
0
etc/ghost/content/themes/Casper/default.hbs
Normal file → Executable file
0
etc/ghost/content/themes/Casper/error-404.hbs
Normal file → Executable file
0
etc/ghost/content/themes/Casper/error.hbs
Normal file → Executable file
0
etc/ghost/content/themes/Casper/gulpfile.js
Normal file → Executable file
0
etc/ghost/content/themes/Casper/index.hbs
Normal file → Executable file
0
etc/ghost/content/themes/Casper/package.json
Normal file → Executable file
0
etc/ghost/content/themes/Casper/page.hbs
Normal file → Executable file
0
etc/ghost/content/themes/Casper/partials/byline-multiple.hbs
Normal file → Executable file
0
etc/ghost/content/themes/Casper/partials/byline-single.hbs
Normal file → Executable file
0
etc/ghost/content/themes/Casper/partials/floating-header.hbs
Normal file → Executable file
0
etc/ghost/content/themes/Casper/partials/icons/avatar.hbs
Normal file → Executable file
|
Before Width: | Height: | Size: 308 B After Width: | Height: | Size: 308 B |
0
etc/ghost/content/themes/Casper/partials/icons/facebook.hbs
Normal file → Executable file
|
Before Width: | Height: | Size: 155 B After Width: | Height: | Size: 155 B |
0
etc/ghost/content/themes/Casper/partials/icons/ghost-logo.hbs
Normal file → Executable file
|
Before Width: | Height: | Size: 3.3 KiB After Width: | Height: | Size: 3.3 KiB |
0
etc/ghost/content/themes/Casper/partials/icons/infinity.hbs
Normal file → Executable file
|
Before Width: | Height: | Size: 196 B After Width: | Height: | Size: 196 B |
0
etc/ghost/content/themes/Casper/partials/icons/location.hbs
Normal file → Executable file
|
Before Width: | Height: | Size: 329 B After Width: | Height: | Size: 329 B |
0
etc/ghost/content/themes/Casper/partials/icons/point.hbs
Normal file → Executable file
|
Before Width: | Height: | Size: 311 B After Width: | Height: | Size: 311 B |
0
etc/ghost/content/themes/Casper/partials/icons/rss.hbs
Normal file → Executable file
|
Before Width: | Height: | Size: 263 B After Width: | Height: | Size: 263 B |
0
etc/ghost/content/themes/Casper/partials/icons/twitter.hbs
Normal file → Executable file
|
Before Width: | Height: | Size: 888 B After Width: | Height: | Size: 888 B |
0
etc/ghost/content/themes/Casper/partials/icons/website.hbs
Normal file → Executable file
|
Before Width: | Height: | Size: 413 B After Width: | Height: | Size: 413 B |