mirror of
https://codeberg.org/PostERG/xamxam.git
synced 2026-05-06 11:09:18 +02:00
fix: remove Post-ERG branding → XAMXAM; drop legacy posterg nginx symlink in deploy script; rename posterg.db → xamxam.db
This commit is contained in:
@@ -20,8 +20,8 @@ warn() { printf "${YELLOW}!${NC} %s\n" "$*"; }
|
||||
|
||||
[ "$EUID" -eq 0 ] || { err "Run as root (sudo)"; exit 1; }
|
||||
|
||||
printf "🚀 Post-ERG Production Deployment\n"
|
||||
printf "==================================\n\n"
|
||||
printf "🚀 XAMXAM Production Deployment\n"
|
||||
printf "================================\n\n"
|
||||
|
||||
# ── Step 1: Permissions ───────────────────────────────────────────────────────
|
||||
printf "📋 Step 1: Fixing file permissions...\n"
|
||||
@@ -66,6 +66,12 @@ fi
|
||||
cp /tmp/xamxam.conf /etc/nginx/sites-available/xamxam
|
||||
ok "Installed new nginx config"
|
||||
|
||||
# Remove legacy posterg symlink if it exists (causes duplicate limit_req_zone)
|
||||
if [ -L "/etc/nginx/sites-enabled/posterg" ]; then
|
||||
rm /etc/nginx/sites-enabled/posterg
|
||||
ok "Removed legacy sites-enabled/posterg symlink"
|
||||
fi
|
||||
|
||||
if [ ! -L "/etc/nginx/sites-enabled/xamxam" ]; then
|
||||
ln -s /etc/nginx/sites-available/xamxam /etc/nginx/sites-enabled/xamxam
|
||||
ok "Created sites-enabled symlink"
|
||||
|
||||
Reference in New Issue
Block a user