diff --git a/install.sh b/install.sh index fb44f32..6372962 100644 --- a/install.sh +++ b/install.sh @@ -1,15 +1,5 @@ #!/bin/bash clear -echo "Setting up the enviroment." -sudo apt update -sudo apt install docker.io git curl -sudo curl -L "https://github.com/docker/compose/releases/download/v2.20.3/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose -sudo chmod +x /usr/local/bin/docker-compose -echo "Done setting up the enviroment." -echo "Downloading Game Files" -git clone --recurse-submodules https://github.com/solero/wand && cd wand -echo "Done Downloading the game files." -sudo rm -r .env echo "Please answer this questions for setting up the game:" echo "Enter password for the database (leave empty for a random password):" @@ -43,6 +33,17 @@ if [ -z "$ipadd" ]; then ipadd=127.0.0.1 fi +echo "Setting up the enviroment." +sudo apt update +sudo apt install docker.io git curl +sudo curl -L "https://github.com/docker/compose/releases/download/v2.20.3/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose +sudo chmod +x /usr/local/bin/docker-compose +echo "Done setting up the enviroment." +echo "Downloading Game Files" +git clone --recurse-submodules https://github.com/solero/wand && cd wand +echo "Done Downloading the game files." +sudo rm -r .env + echo "# database POSTGRES_USER=postgres POSTGRES_PASSWORD=$dbpass