feat: initial element-web-theme repository with W-MAKE Cyber Noir theme
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
#!/usr/bin/env bash
|
||||
# deploy.sh - Deploy Matrix Element Web Theme & Config
|
||||
# Domain: chat.free-warez.top / element.free-warez.top
|
||||
# Target Host: free-warez.top -> /matrix/client-element/config.json
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
TARGET_HOST="free-warez.top"
|
||||
LOCAL_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
CONFIG_FILE="$LOCAL_DIR/config.json"
|
||||
|
||||
echo "🚀 Deploying Matrix Element Web Theme & Config"
|
||||
echo " Target Host: $TARGET_HOST:/matrix/client-element/config.json"
|
||||
echo "========================================================="
|
||||
|
||||
# 1. Check SSH connection
|
||||
echo "📡 Checking SSH connection to $TARGET_HOST..."
|
||||
if ! ssh -q -o BatchMode=yes -o ConnectTimeout=5 "$TARGET_HOST" exit; then
|
||||
echo "❌ Cannot connect to $TARGET_HOST via SSH."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# 2. Transfer config
|
||||
echo "🔄 Transferring config.json to $TARGET_HOST..."
|
||||
scp "$CONFIG_FILE" "$TARGET_HOST:/matrix/client-element/config.json"
|
||||
|
||||
# 3. Reload Element Web container
|
||||
echo "🔄 Reloading Element Web container..."
|
||||
ssh "$TARGET_HOST" "docker restart matrix-client-element"
|
||||
|
||||
echo "✅ Element Web theme deployed successfully!"
|
||||
echo "✨ Deployment complete!"
|
||||
Reference in New Issue
Block a user