made the question at the start

I made it so the user will be able to leave the server alone after answering the questions
This commit is contained in:
Arnon Hacohen 2024-04-24 22:18:26 +03:00 committed by GitHub
parent bcd24b9779
commit 4346178a1e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,15 +1,5 @@
#!/bin/bash #!/bin/bash
clear 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 "Please answer this questions for setting up the game:"
echo "Enter password for the database (leave empty for a random password):" 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 ipadd=127.0.0.1
fi 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 echo "# database
POSTGRES_USER=postgres POSTGRES_USER=postgres
POSTGRES_PASSWORD=$dbpass POSTGRES_PASSWORD=$dbpass