participants text color issue and main tile profile pic issue

This commit is contained in:
2026-06-06 20:27:33 +05:30
parent 9c5a375632
commit 00aa8ec8ec
6 changed files with 168 additions and 7 deletions

View File

@@ -0,0 +1,30 @@
#!/usr/bin/env bash
local_jitsi_config_dir() {
local root_dir="$1"
local local_dir="$root_dir/local"
if [[ -n "${POLITICTALK_LOCAL_JITSI_CONFIG_DIR:-}" ]]; then
printf '%s\n' "$POLITICTALK_LOCAL_JITSI_CONFIG_DIR"
return
fi
if grep -qi microsoft /proc/version 2>/dev/null && [[ "$root_dir" == /mnt/* ]]; then
printf '%s\n' "$HOME/politictalk-jitsi-cfg"
return
fi
printf '%s\n' "$local_dir/.jitsi-meet-cfg"
}
local_jitsi_set_env() {
local key="$1"
local value="$2"
local file="$3"
if grep -qE "^#?${key}=" "$file"; then
perl -0pi -e "s|^#?${key}=.*|${key}=${value}|m" "$file"
else
printf '%s=%s\n' "$key" "$value" >> "$file"
fi
}

View File

@@ -5,9 +5,12 @@ SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
ROOT_DIR="$(cd "$SCRIPT_DIR/.." && pwd)"
LOCAL_DIR="$ROOT_DIR/local"
STACK_DIR="$LOCAL_DIR/docker-jitsi-meet"
CONFIG_DIR="$LOCAL_DIR/.jitsi-meet-cfg"
RELEASE_FILE="$LOCAL_DIR/.release"
source "$SCRIPT_DIR/local-jitsi-env.sh"
CONFIG_DIR="$(local_jitsi_config_dir "$ROOT_DIR")"
HTTP_PORT="${HTTP_PORT:-8000}"
HTTPS_PORT="${HTTPS_PORT:-8443}"
PUBLIC_URL="${PUBLIC_URL:-https://localhost:${HTTPS_PORT}}"
@@ -18,11 +21,7 @@ set_env() {
local value="$2"
local file="$STACK_DIR/.env"
if grep -qE "^#?${key}=" "$file"; then
perl -0pi -e "s|^#?${key}=.*|${key}=${value}|m" "$file"
else
printf '%s=%s\n' "$key" "$value" >> "$file"
fi
local_jitsi_set_env "$key" "$value" "$file"
}
mkdir -p "$LOCAL_DIR"

View File

@@ -5,7 +5,10 @@ SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
ROOT_DIR="$(cd "$SCRIPT_DIR/.." && pwd)"
LOCAL_DIR="$ROOT_DIR/local"
STACK_DIR="$LOCAL_DIR/docker-jitsi-meet"
CONFIG_DIR="$LOCAL_DIR/.jitsi-meet-cfg"
source "$SCRIPT_DIR/local-jitsi-env.sh"
CONFIG_DIR="$(local_jitsi_config_dir "$ROOT_DIR")"
if [[ ! -d "$STACK_DIR" ]]; then
echo "Missing $STACK_DIR. Run ./scripts/local-jitsi-setup.sh first."
@@ -14,6 +17,10 @@ fi
mkdir -p "$CONFIG_DIR"/{web,transcripts,prosody/config,prosody/prosody-plugins-custom,jicofo,jvb,jigasi,jibri}
if [[ -f "$STACK_DIR/.env" ]]; then
local_jitsi_set_env CONFIG "$CONFIG_DIR" "$STACK_DIR/.env"
fi
cp "$LOCAL_DIR/custom-config.js" "$CONFIG_DIR/web/custom-config.js"
cp "$LOCAL_DIR/custom-interface_config.js" "$CONFIG_DIR/web/custom-interface_config.js"
cp "$LOCAL_DIR/docker-compose.override.yml" "$STACK_DIR/docker-compose.override.yml"
@@ -23,3 +30,4 @@ find "$ROOT_DIR/prosody-plugins" -maxdepth 1 -name 'mod_politictalk_*.lua' -type
done
echo "Synced PoliticTalk local overrides into Docker Jitsi runtime."
echo "Using Docker Jitsi config: $CONFIG_DIR"