feat: redesign lamp-link with cyber glassmorphism theme, 3D banner logo and grok wallpaper
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
#!/usr/bin/env bash
|
||||
# deploy.sh - Deploy the23 Theme for LAMP Link Shortener
|
||||
# Domain: link.free-warez.win
|
||||
# Target Host: free-warez.win -> /opt/containers/lamp_link/www/link/storage/themes/the23
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
TARGET_HOST="free-warez.win"
|
||||
TARGET_THEME_DIR="/opt/containers/lamp_link/www/link/storage/themes/the23"
|
||||
TARGET_CONTENT_DIR="/opt/containers/lamp_link/www/link/public/content"
|
||||
LOCAL_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
|
||||
echo "🚀 Deploying LAMP Link Theme & Cyber Assets"
|
||||
echo " Target Host: $TARGET_HOST"
|
||||
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. Sync Theme templates
|
||||
echo "🔄 Syncing theme files to VPS..."
|
||||
rsync -avz "$LOCAL_DIR/the23/" "$TARGET_HOST:$TARGET_THEME_DIR/"
|
||||
|
||||
# 3. Sync Public Assets (CSS, Logo, Wallpaper)
|
||||
echo "🔄 Syncing public assets (CSS & 3D Banner Logo)..."
|
||||
rsync -avz "$LOCAL_DIR/assets/css/cyber-theme.css" "$TARGET_HOST:$TARGET_CONTENT_DIR/cyber-theme.css"
|
||||
rsync -avz "$LOCAL_DIR/assets/img/pageLogo.png" "$TARGET_HOST:$TARGET_CONTENT_DIR/pageLogo.png"
|
||||
rsync -avz "$LOCAL_DIR/assets/img/link_banner_logo.png" "$TARGET_HOST:$TARGET_CONTENT_DIR/link_banner_logo.png"
|
||||
rsync -avz "$LOCAL_DIR/assets/img/cyber_bg.jpg" "$TARGET_HOST:$TARGET_CONTENT_DIR/cyber_bg.jpg"
|
||||
rsync -avz "$LOCAL_DIR/assets/img/link_icon.png" "$TARGET_HOST:$TARGET_CONTENT_DIR/link_icon.png"
|
||||
|
||||
# 4. Fix permissions and flush cache
|
||||
echo "🔄 Updating permissions and clearing cache..."
|
||||
ssh "$TARGET_HOST" "chown -R www-data:www-data $TARGET_THEME_DIR $TARGET_CONTENT_DIR && rm -rf /opt/containers/lamp_link/www/link/storage/cache/*"
|
||||
|
||||
echo "✅ LAMP Link theme and assets updated & cache cleared!"
|
||||
echo "✨ Deployment complete!"
|
||||
Reference in New Issue
Block a user