mirror of
https://github.com/uprightbass360/AzerothCore-RealmMaster.git
synced 2026-02-03 10:53:48 +00:00
feat: upgrade
This commit is contained in:
@@ -69,6 +69,12 @@ section_header "Phase 1 Integration Test Suite"
|
||||
info "Project root: $PROJECT_ROOT"
|
||||
info "Test started: $(date)"
|
||||
|
||||
# Ensure storage directories are writable before generating module state
|
||||
if [ -x "$PROJECT_ROOT/scripts/bash/repair-storage-permissions.sh" ]; then
|
||||
info "Normalizing storage permissions"
|
||||
"$PROJECT_ROOT/scripts/bash/repair-storage-permissions.sh" --silent || true
|
||||
fi
|
||||
|
||||
# Test 1: Verify .env exists
|
||||
test_header "Environment Configuration Check"
|
||||
if [ -f .env ]; then
|
||||
@@ -273,11 +279,10 @@ fi
|
||||
# Test 11: Restore + Module Staging Automation
|
||||
test_header "Restore + Module Staging Automation"
|
||||
if grep -q "restore-and-stage.sh" docker-compose.yml && \
|
||||
grep -q ".restore-prestaged" scripts/bash/restore-and-stage.sh && \
|
||||
grep -q "module-sql-ledger" scripts/bash/restore-and-stage.sh; then
|
||||
ok "restore-and-stage.sh wired into compose, refreshes ledger snapshot, and flags staging"
|
||||
grep -q ".restore-prestaged" scripts/bash/restore-and-stage.sh; then
|
||||
ok "restore-and-stage.sh wired into compose and flags stage-modules to recopy SQL"
|
||||
else
|
||||
err "restore-and-stage.sh missing compose wiring or ledger/flag handling"
|
||||
err "restore-and-stage.sh missing compose wiring or flag handling"
|
||||
fi
|
||||
|
||||
# Test 12: Docker Compose configuration check
|
||||
|
||||
Reference in New Issue
Block a user