From e8b69eb9d681acf0ffb550093fe6d55ba573f2d4 Mon Sep 17 00:00:00 2001 From: Emile Date: Mon, 21 Oct 2019 10:59:37 +0200 Subject: added some requirements --- setup.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/setup.sh b/setup.sh index b05f0c4..93cbb4f 100755 --- a/setup.sh +++ b/setup.sh @@ -8,6 +8,12 @@ docker network create circus 2> /dev/zero # possible that containers in the same network can interact with the database docker network create circus_db 2> /dev/zero +echo "Welcome to the circus-setup tool!" +echo "Please make sure you have the following services/tools installed before continuing:" +echo "- docker (with a running docker-server)" +echo "- docker-compose" +echo "- htpasswd" + # get a hostname and a ctfname from the user read -e -p "HOSTNAME: " -i "ctf.flexerilla.team" HOSTNAME read -e -p "CTFNAME: " -i "FlexCTF" CTFNAME @@ -23,6 +29,7 @@ read -e -p "Traefik password: " -i "secret" TRAEFIK_PASSWORD # Create the traefik creds string (user:pass) TRAEFIK_CREDS=$(htpasswd -nb $TRAEFIK_USER $TRAEFIK_PASSWORD) +# Write the creds to the traefik users file echo TRAEFIK_CREDS >> traefik_users # Grafana settings -- cgit 1.4.1