diff --git a/scripts/copy_freeze/hu.json b/scripts/copy_freeze/hu.json index 79ff3cb..3b4495f 100644 --- a/scripts/copy_freeze/hu.json +++ b/scripts/copy_freeze/hu.json @@ -80,8 +80,8 @@ "bookstack": { "app_info.default_creds": "admin@admin.com / password", "app_info.first_steps[0]": "Nyisd meg a wiki.DOMAIN címet a böngészőben", - "app_info.first_steps[1]": "Jelentkezz be: admin@admin.com / password", - "app_info.first_steps[2]": "Változtasd meg azonnal az admin jelszót és email címet", + "app_info.first_steps[1]": "Jelentkezz be: admin@admin.com és a Beállítások oldalon látható első jelszó", + "app_info.first_steps[2]": "Változtasd meg az admin email címét a sajátodra", "app_info.first_steps[3]": "Hozd létre az első polcot és könyvet", "app_info.first_steps[4]": "Kezdj el írni!", "app_info.tagline": "Egyszerű wiki platform - polcok, könyvek, fejezetek és oldalak", @@ -90,6 +90,8 @@ "app_info.use_cases[2]": "Könyv > Fejezet > Oldal hierarchia az áttekinthetőségért", "app_info.use_cases[3]": "Teljes szöveges keresés és címkék", "app_info.use_cases[4]": "WYSIWYG és Markdown szerkesztő", + "deploy_fields[ADMIN_PASSWORD].description": "Az első bejelentkezéshez: admin@admin.com és ez a jelszó. Utána a profilodban módosítható.", + "deploy_fields[ADMIN_PASSWORD].label": "Admin jelszó (admin@admin.com)", "deploy_fields[APP_KEY].label": "Alkalmazás kulcs", "deploy_fields[DB_PASSWORD].label": "Adatbázis jelszó", "deploy_fields[DOMAIN].description": "A szerver domain neve", diff --git a/templates/bookstack/.felhom.yml b/templates/bookstack/.felhom.yml index 1ee90f8..e351dc9 100644 --- a/templates/bookstack/.felhom.yml +++ b/templates/bookstack/.felhom.yml @@ -47,6 +47,15 @@ deploy_fields: generate: "password:24" locked_after_deploy: true + # `09` §3 decision 45: BookStack starts with admin@admin.com / password. The box replaces that password with + # this generated one right after the install (after_install below); the app page shows it as the first password. + - env_var: ADMIN_PASSWORD + label: "Admin jelszó (admin@admin.com)" + type: password + generate: "password:24" + description: "Az első bejelentkezéshez: admin@admin.com és ez a jelszó. Utána a profilodban módosítható." + locked_after_deploy: true + # --- App info (info page content) --- app_info: tagline: "Egyszerű wiki platform - polcok, könyvek, fejezetek és oldalak" @@ -62,12 +71,21 @@ app_info: first_steps: - 'Nyisd meg a wiki.DOMAIN címet a böngészőben' - - 'Jelentkezz be: admin@admin.com / password' - - 'Változtasd meg azonnal az admin jelszót és email címet' + - 'Jelentkezz be: admin@admin.com és a Beállítások oldalon látható első jelszó' + - 'Változtasd meg az admin email címét a sajátodra' - 'Hozd létre az első polcot és könyvet' - 'Kezdj el írni!' +# --- After a fresh install (controller >= 0.279.0, decision 45) --- +# BookStack's OWN artisan command updates the initial admin in place. Measured on 9202 2026-09-28: afterwards +# admin@admin.com / password no longer logs in, the generated password does. +after_install: + service: bookstack + env: [ADMIN_PASSWORD] + command: ["php", "/app/www/artisan", "bookstack:create-admin", "--email=admin@admin.com", "--name=Admin", "--password=${ADMIN_PASSWORD}", "--initial"] + success: "The default admin user has been updated" + # --- Controller-side health probe --- healthcheck: checks: @@ -91,8 +109,8 @@ i18n: - 'A visual editor and a Markdown editor' first_steps: - 'Open wiki.DOMAIN in your browser' - - 'Sign in: admin@admin.com / password' - - 'Change the admin password and e-mail address straight away' + - 'Sign in: admin@admin.com and the first password shown on the settings page' + - 'Change the admin e-mail address to your own' - 'Create your first shelf and book' - 'Start writing' deploy_fields: @@ -106,6 +124,9 @@ i18n: label: 'Database password' - env_var: APP_KEY label: 'Application key' + - env_var: ADMIN_PASSWORD + label: 'Admin password (admin@admin.com)' + description: 'For the first sign-in: admin@admin.com and this password. Change it in your profile afterwards.' # update_ladder — the test record: one tested step per line, oldest first (JSON flow mappings, # `09-update-architecture.md` §6.4 part 4). WRITTEN BY scripts/upgrade-test.py, never by hand;