Initial commit: Crumbforest Architecture Refinement v1 (Clean)

This commit is contained in:
2025-12-07 01:26:46 +01:00
commit 6c38ed680b
633 changed files with 61797 additions and 0 deletions

8
compose/reset_admin_demo.sh Executable file
View File

@@ -0,0 +1,8 @@
#!/usr/bin/env bash
set -e
ADMIN_HASH=$(docker exec compose-app-1 python -c 'import bcrypt;print(bcrypt.hashpw(b"admin", bcrypt.gensalt(12)).decode().replace("$","\\$"))')
DEMO_HASH=$(docker exec compose-app-1 python -c 'import bcrypt;print(bcrypt.hashpw(b"demo", bcrypt.gensalt(12)).decode().replace("$","\\$"))')
docker exec compose-db-1 sh -lc "mariadb -u\"\$MARIADB_USER\" -p\"\$MARIADB_PASSWORD\" \"\$MARIADB_DATABASE\" -e \
\"UPDATE users SET pass_hash='${ADMIN_HASH}' WHERE email='admin@crumb.local';
UPDATE users SET pass_hash='${DEMO_HASH}' WHERE email='demo@crumb.local';\""
echo "✔ admin/demo Passwörter gesetzt (admin/demo)."