From ef5c0e558775e4a7a64780337a31f8348db75e9f Mon Sep 17 00:00:00 2001 From: Omid Date: Wed, 17 Feb 2021 08:36:06 +0200 Subject: [PATCH] Ask about Prometheus installation Adds a missing question which asks if the user wants a Prometheus exporter to be installed --- scripts/setup | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/scripts/setup b/scripts/setup index d062b82..cd077eb 100755 --- a/scripts/setup +++ b/scripts/setup @@ -40,6 +40,11 @@ then done fi +prometheus_exporter="" +while [[ ! $prometheus_exporter =~ ^(y|n)$ ]]; do + read -p "Should a Prometheus exporter be included? (y/n): " prometheus_exporter +done + DOMAIN="" while [[ -z "$DOMAIN" ]]; do read -p "Please enter the domain name: " DOMAIN @@ -119,6 +124,11 @@ else sed -i "s/ENABLE_COTURN.*/#ENABLE_COTURN=true/" .env fi +if [ "$prometheus_exporter" == "y" ] +then + sed -i "s/#ENABLE_PROMETHEUS_EXPORTER.*/ENABLE_PROMETHEUS_EXPORTER=true/" .env +fi + # change secrets RANDOM_1=$(head /dev/urandom | tr -dc A-Za-z0-9 | head -c 40) RANDOM_2=$(head /dev/urandom | tr -dc A-Za-z0-9 | head -c 40) @@ -139,4 +149,4 @@ echo "make sure to recreate the docker-compose.yml after each change" echo " $ ./scripts/generate-compose" echo "" echo "to start bigbluebutton run" -echo " $ docker-compose up -d" \ No newline at end of file +echo " $ docker-compose up -d"