From 4346178a1e267173754a9f99fb01b139d8441b99 Mon Sep 17 00:00:00 2001 From: Arnon Hacohen <58848496+arnon001@users.noreply.github.com> Date: Wed, 24 Apr 2024 22:18:26 +0300 Subject: [PATCH] made the question at the start I made it so the user will be able to leave the server alone after answering the questions --- install.sh | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) 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