set debug mode export & add titles format
This commit is contained in:
parent
7ebd6e5d38
commit
383ad96978
|
@ -15,6 +15,7 @@ do
|
|||
done
|
||||
|
||||
if [ "$MODE" = "debug" ]; then
|
||||
export MODE=debug
|
||||
set -x
|
||||
fi
|
||||
|
||||
|
@ -405,6 +406,7 @@ apt-get -y install \
|
|||
fi
|
||||
fi
|
||||
|
||||
###FIXME: Trisquel support broken by lsb_release usage###
|
||||
echo "# Check and Install HWE kernel if possible..."
|
||||
HWE_VIR_MOD="$(apt-cache madison linux-image-generic-hwe-"$(lsb_release -sr)" \
|
||||
2>/dev/null|head -n1|grep -c "hwe-$(lsb_release -sr)")"
|
||||
|
@ -420,11 +422,9 @@ fi
|
|||
|
||||
check_serv
|
||||
|
||||
echo "
|
||||
#--------------------------------------------------
|
||||
# Install Jitsi Framework
|
||||
print_title "Install Jitsi Framework"
|
||||
#--------------------------------------------------
|
||||
"
|
||||
if [ "$LE_SSL" = "yes" ]; then
|
||||
echo "set jitsi-meet/cert-choice select $CERT_CHOICE_DEBCONF" \
|
||||
| debconf-set-selections
|
||||
|
@ -469,7 +469,9 @@ elif [ "$(npm list -g esprima 2>/dev/null | grep -c "esprima")" == "1" ]; then
|
|||
echo "Good. Esprima package is already installed"
|
||||
fi
|
||||
|
||||
echo "# Installing Google Chrome / ChromeDriver"
|
||||
#--------------------------------------------------
|
||||
print_title "Installing Google Chrome / ChromeDriver"
|
||||
#--------------------------------------------------
|
||||
if [ "$GOOGLE_ACTIVE_REPO" = "main" ]; then
|
||||
echo "Google repository already set."
|
||||
else
|
||||
|
@ -484,7 +486,10 @@ rm -rf "$GOOGL_REPO"
|
|||
|
||||
G_CHROME=$(apt-cache madison google-chrome-stable|awk '{print$3}'|cut -d. -f1-3)
|
||||
CHROMELAB_URL="https://googlechromelabs.github.io/chrome-for-testing"
|
||||
CHD_LTST_DWNL=$(curl -s $CHROMELAB_URL/known-good-versions-with-downloads.json | jq -r ".versions[].downloads.chromedriver | select(. != null) | .[].url" | grep linux64 | grep "$G_CHROME" | tail -1)
|
||||
CHD_LTST_DWNL=$(curl -s $CHROMELAB_URL/known-good-versions-with-downloads.json | \
|
||||
jq -r ".versions[].downloads.chromedriver | \
|
||||
select(. != null) | .[].url" | grep linux64 | \
|
||||
grep "$G_CHROME" | tail -1)
|
||||
CHD_LTST=$(awk -F '/' '{print$7}' <<< "$CHD_LTST_DWNL")
|
||||
GCMP_JSON="/etc/opt/chrome/policies/managed/managed_policies.json"
|
||||
|
||||
|
@ -582,6 +587,7 @@ sleep .1
|
|||
read -p "Leave empty to use the default one (English):$NL" -r L10N_ME
|
||||
|
||||
#Drop unsecure TLS
|
||||
if grep -qE 'TLSv1(\.1)?' /etc/nginx/nginx.conf; then
|
||||
while [ "$DROP_TLS1" != "yes" ] && [ "$DROP_TLS1" != "no" ]
|
||||
do
|
||||
read -p "> Do you want to drop support for unsecure protocols TLSv1.0/1.1 now: (yes or no)$NL" -r DROP_TLS1
|
||||
|
@ -591,6 +597,7 @@ do
|
|||
printf " - TLSv1.0/1.1 will be dropped\n\n"
|
||||
fi
|
||||
done
|
||||
fi
|
||||
sleep .1
|
||||
#Brandless Mode
|
||||
while [ "$ENABLE_BLESSM" != "yes" ] && [ "$ENABLE_BLESSM" != "no" ]
|
||||
|
@ -795,7 +802,9 @@ restart_services() {
|
|||
# Configure Jvb2
|
||||
sed -i "/shard.HOSTNAME/s|localhost|$DOMAIN|" "$JVB2_SIP"
|
||||
|
||||
# Configure Jibri
|
||||
#--------------------------------------------------
|
||||
print_title "Configure Jibri"
|
||||
#--------------------------------------------------
|
||||
if [ "$ENABLE_SC" = "yes" ]; then
|
||||
if [ ! -f "$MOD_LIST_FILE" ]; then
|
||||
printf "\n-> Adding external module to list prosody users...\n"
|
||||
|
@ -993,7 +1002,9 @@ fi
|
|||
grep -q wasm /etc/nginx/mime.types && sed -i '/types {/,/}/ {/wasm/d}' "$WS_CONF"
|
||||
|
||||
sleep .1
|
||||
#================== Setup prosody conf file =================
|
||||
#--------------------------------------------------
|
||||
print_title "Setup prosody conf file"
|
||||
#--------------------------------------------------
|
||||
|
||||
###Setup secure rooms
|
||||
if [ "$ENABLE_SC" = "yes" ]; then
|
||||
|
@ -1043,8 +1054,11 @@ VirtualHost "guest.$DOMAIN"
|
|||
P_SR
|
||||
fi
|
||||
|
||||
#======================
|
||||
# Custom settings
|
||||
|
||||
#--------------------------------------------------
|
||||
print_title "Custom settings"
|
||||
#--------------------------------------------------
|
||||
|
||||
#Start with video muted by default
|
||||
sed -i "s|// startWithVideoMuted: false,|startWithVideoMuted: true,|" "$MEET_CONF"
|
||||
|
||||
|
|
Loading…
Reference in New Issue