diff options
-rwxr-xr-x | setup.sh | 7 |
1 files changed, 7 insertions, 0 deletions
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 |