feat(ente): automate first-start setup with ente-setup script

- Add hardcoded OTT (123456) for all emails in museum.yaml so users
  don't need to search logs for verification codes
- Replace separate helper scripts with single 'ente-setup' command
  that handles: admin whitelisting (user_id from DB), CLI account
  add, and subscription upgrade in one guided flow
- Simplify JSON notes to single first-start instruction
This commit is contained in:
CanbiZ (MickLesk)
2026-03-27 15:44:00 +01:00
parent 4fe1d95c81
commit d7bf4d51f1
2 changed files with 45 additions and 42 deletions

View File

@@ -33,19 +33,7 @@
},
"notes": [
{
"text": "First-Start: Create your first user account via the web UI at port 3000",
"type": "warning"
},
{
"text": "First-Start: Check museum logs for the email verification code: `journalctl -u ente-museum -n 100 | grep -i 'verification'`",
"type": "warning"
},
{
"text": "First-Start: Add your account to the CLI first: `ente account add` (export dir: any path, e.g. /photos)",
"type": "warning"
},
{
"text": "First-Start: Whitelist admin and remove subscription limit: `ente-upgrade-subscription <email>`",
"text": "First-Start: Create your account via the web UI (port 3000), use verification code `123456`, then run `ente-setup`",
"type": "warning"
},
{