mirror of
https://github.com/bigbluebutton/docker.git
synced 2025-04-23 18:28:39 +02:00
Ask about Prometheus installation
Adds a missing question which asks if the user wants a Prometheus exporter to be installed
This commit is contained in:
parent
fcccf8145e
commit
ef5c0e5587
@ -40,6 +40,11 @@ then
|
|||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
prometheus_exporter=""
|
||||||
|
while [[ ! $prometheus_exporter =~ ^(y|n)$ ]]; do
|
||||||
|
read -p "Should a Prometheus exporter be included? (y/n): " prometheus_exporter
|
||||||
|
done
|
||||||
|
|
||||||
DOMAIN=""
|
DOMAIN=""
|
||||||
while [[ -z "$DOMAIN" ]]; do
|
while [[ -z "$DOMAIN" ]]; do
|
||||||
read -p "Please enter the domain name: " DOMAIN
|
read -p "Please enter the domain name: " DOMAIN
|
||||||
@ -119,6 +124,11 @@ else
|
|||||||
sed -i "s/ENABLE_COTURN.*/#ENABLE_COTURN=true/" .env
|
sed -i "s/ENABLE_COTURN.*/#ENABLE_COTURN=true/" .env
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ "$prometheus_exporter" == "y" ]
|
||||||
|
then
|
||||||
|
sed -i "s/#ENABLE_PROMETHEUS_EXPORTER.*/ENABLE_PROMETHEUS_EXPORTER=true/" .env
|
||||||
|
fi
|
||||||
|
|
||||||
# change secrets
|
# change secrets
|
||||||
RANDOM_1=$(head /dev/urandom | tr -dc A-Za-z0-9 | head -c 40)
|
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)
|
RANDOM_2=$(head /dev/urandom | tr -dc A-Za-z0-9 | head -c 40)
|
||||||
|
Loading…
Reference in New Issue
Block a user