web/network/database/setup.sh
unimatrixgit 9dcd9b084a Integrate shared planetary inventories and account sales with the current site
Merge the supplied inventory/exchange package into the latest DuneRealms source.
Keep community-reward receipts, verified UUID linking, native menus and current
website artwork, Dutch naming and account controls. Wire the inventory/sales
adapters into the real CP session and verified-link schema, with isolated reads
and honest unconfigured states. Preserve lobby/ender separation and Core-owned
atomic exchange checkpoints.

Validation: website build and 56 tests; 12 inventory/market adapter tests;
Core/Essentials and NPC/Terrain/Lobby builds and tests; local browser inspection
of the themed inventory, mannequin and History of sales with fictional fixtures.
Paper 1.21.8 source only: live 1.21.4 binaries and databases are unchanged.
2026-10-27 19:44:22 +01:00

16 lines
668 B
Shell

#!/usr/bin/env bash
set -euo pipefail
cd -- "$(dirname -- "${BASH_SOURCE[0]}")"
command -v docker >/dev/null || { echo 'Install Docker Engine with the Compose plugin first.' >&2; exit 1; }
docker compose version >/dev/null
umask 077
if [[ ! -e .env ]]; then
command -v openssl >/dev/null
{
printf 'POSTGRES_ADMIN_PASSWORD=%s\n' "$(openssl rand -hex 32)"
printf 'DUNE_PASSWORD=%s\n' "$(openssl rand -hex 32)"
printf 'DB_BIND_IP=127.0.0.1\n'
} > .env
fi
docker compose up -d --wait
printf '\nDatabase ready. Configure every backend using the dune password in this directory/.env.\nSee README.md for network binding, migration, backups and recovery.\n'