mirror of
https://github.com/solero/wand.git
synced 2024-11-28 00:17:22 +00:00
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:
parent
bcd24b9779
commit
4346178a1e
21
install.sh
21
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
|
||||
|
Loading…
Reference in New Issue
Block a user