diff --git a/jm-bm.sh b/jm-bm.sh index 01123fa..a40f665 100644 --- a/jm-bm.sh +++ b/jm-bm.sh @@ -23,6 +23,7 @@ if ! [ "$(id -u)" = 0 ]; then fi DOMAIN="$(find /etc/prosody/conf.d/ -name \*.lua|awk -F'.cfg' '!/localhost/{print $1}'|xargs basename)" +MEET_CONF="/etc/jitsi/meet/$DOMAIN-config.js" CSS_FILE="/usr/share/jitsi-meet/css/all.css" TITLE_FILE="/usr/share/jitsi-meet/title.html" INT_CONF="/usr/share/jitsi-meet/interface_config.js" @@ -87,10 +88,10 @@ sed -i "s| powered by the Jitsi Videobridge||g" "$TITLE_FILE" sed -i "/appNotInstalled/ s|{{app}}|$MOVILE_APP_NAME|g" /usr/share/jitsi-meet/lang/* #Custom UI changes -if [ -f "$INT_CONF_ETC" ]; then +if [ -f "$INT_CONF"] && [ -f "$INT_CONF_ETC" ]; then echo "Static interface_config.js exists, skipping modification..." else - echo "This setup doesn't have a static interface_config.js, checking changes..." + echo "This setup doesn't have a static interface_config.js, seting it up and applying changes..." echo -e "\nPlease note that brandless mode will also overwrite support links.\n" sed -i "21,32 s|Jitsi Meet|$APP_NAME|g" "$INT_CONF" sed -i "s|\([[:space:]]\)APP_NAME:.*| APP_NAME: \'$APP_NAME\',|" "$INT_CONF"