Integrate Grafana Dashboard to Quick Jibri Installer

This commit is contained in:
Luis Guzmán 2020-07-04 09:39:09 -05:00
parent 08decca7c8
commit 743da51e9f
1 changed files with 16 additions and 0 deletions

View File

@ -462,6 +462,17 @@ elif [ "$ENABLE_TRANSCRIPT" = "yes" ]; then
echo "Jigasi Transcription will be enabled." echo "Jigasi Transcription will be enabled."
fi fi
done done
#Grafana
while [[ "$ENABLE_GRAFANA_DSH" != "yes" && "$ENABLE_GRAFANA_DSH" != "no" ]]
do
read -p "> Do you want to setup Grafana Dashboard: (yes or no)
( Please check requirements at: https://github.com/switnet-ltd/quick-jibri-installer )"$'\n' -r ENABLE_GRAFANA_DSH
if [ "$ENABLE_GRAFANA_DSH" = "no" ]; then
echo "Grafana Dashboard won't be enabled."
elif [ "$ENABLE_GRAFANA_DSH" = "yes" ]; then
echo "Grafana Dashboard will be enabled."
fi
done
#Start configuration #Start configuration
echo ' echo '
######################################################################## ########################################################################
@ -817,6 +828,11 @@ if [ "$ENABLE_TRANSCRIPT" = "yes" ]; then
bash $PWD/jigasi.sh bash $PWD/jigasi.sh
fi fi
{ {
#Grafana Dashboard
if [ "$ENABLE_GRAFANA_DSH" = "yes" ]; then
echo "Grafana Dashboard will be enabled."
bash $PWD/grafana.sh
fi
#Prevent Jibri conecction issue #Prevent Jibri conecction issue
sed -i "/127.0.0.1/a \\ sed -i "/127.0.0.1/a \\
127.0.0.1 $DOMAIN" /etc/hosts 127.0.0.1 $DOMAIN" /etc/hosts