fix: remove Post-ERG branding → XAMXAM; drop legacy posterg nginx symlink in deploy script; rename posterg.db → xamxam.db

This commit is contained in:
Pontoporeia
2026-04-30 11:10:07 +02:00
parent c949cf9481
commit 68e30abb56
20 changed files with 36 additions and 30 deletions

View File

@@ -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"

View File

@@ -1,5 +1,5 @@
#!/bin/bash
# Manage admin users for Post-ERG nginx basic authentication
# Manage admin users for XAMXAM nginx basic authentication
set -e
@@ -28,7 +28,7 @@ fi
show_menu() {
echo ""
echo -e "${BLUE}════════════════════════════════════════${NC}"
echo -e "${BLUE} Post-ERG Admin User Management${NC}"
echo -e "${BLUE} XAMXAM Admin User Management${NC}"
echo -e "${BLUE}════════════════════════════════════════${NC}"
echo ""
echo "1. List all users"

View File

@@ -3,7 +3,7 @@
set -e
echo "🔄 Migrating Post-ERG repository structure"
echo "🔄 Migrating XAMXAM repository structure"
echo "==========================================="
echo ""

View File

@@ -1,5 +1,5 @@
#!/usr/bin/env bash
# Initialise the Post-ERG SQLite database from schema.sql.
# Initialise the XAMXAM SQLite database from schema.sql.
# Safe to run on existing databases — schema uses IF NOT EXISTS / INSERT OR IGNORE.
# Usage:
# scripts/migrate.sh # xamxam.db (default)

View File

@@ -3,7 +3,7 @@
set -e
echo "🛠️ Setting up Post-ERG development environment"
echo "🛠️ Setting up XAMXAM development environment"
echo "=============================================="
echo ""

View File

@@ -1,5 +1,5 @@
#!/bin/bash
# One-time server setup for Post-ERG
# One-time server setup for XAMXAM
# Run this before the first deploy (or after a permission reset).
#
# Usage: just setup-server
@@ -30,8 +30,8 @@ APP_GROUP="xamxam"
WEB_USER="www-data"
# ─────────────────────────────────────────────────────────────────────────────
printf "🔧 Post-ERG Server Setup\n"
printf "========================\n\n"
printf "🔧 XAMXAM Server Setup\n"
printf "====================\n\n"
# ── 1. Create xamxam group ───────────────────────────────────────────────────
if ! getent group "$APP_GROUP" >/dev/null; then