mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-14 23:21:08 +02:00
fix(builds): repair inventar settings import and add skilltree storage service
- inventar-web: fix mangled icon import in settings page - skilltree-web: create missing lib/services/storage.ts for export/import - startup.sh: add umami/synapse DB creation + synapse user setup with C locale Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
e5ca208cd8
commit
7bc4db7e63
3 changed files with 43 additions and 2 deletions
|
|
@ -131,8 +131,16 @@ log "Containers running: $RUNNING"
|
|||
|
||||
# ─── Create missing databases ───
|
||||
log "Ensuring databases exist..."
|
||||
for db in mana_auth mana_credits chat todo calendar clock contacts storage; do
|
||||
for db in mana_auth mana_credits chat todo calendar clock contacts storage umami; do
|
||||
docker exec mana-infra-postgres psql -U postgres -c "CREATE DATABASE $db;" 2>/dev/null || true
|
||||
done
|
||||
|
||||
# Matrix Synapse: needs its own user and C-locale database
|
||||
docker exec mana-infra-postgres psql -U postgres -c \
|
||||
"DO \$\$ BEGIN IF NOT EXISTS (SELECT FROM pg_roles WHERE rolname='synapse') THEN CREATE USER synapse WITH PASSWORD 'synapse-secure-password'; END IF; END \$\$;" \
|
||||
2>/dev/null || true
|
||||
docker exec mana-infra-postgres psql -U postgres -c \
|
||||
"CREATE DATABASE matrix OWNER synapse ENCODING UTF8 LC_COLLATE='C' LC_CTYPE='C' TEMPLATE template0;" \
|
||||
2>/dev/null || true
|
||||
|
||||
log "=== Startup Complete ($RUNNING containers running) ==="
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue