From c9e554c9a8ca204f0556bf8ae22d7f6c89b41056 Mon Sep 17 00:00:00 2001 From: Andreas Dueren Date: Tue, 4 Nov 2025 18:02:46 -0600 Subject: [PATCH] Clarify admin bootstrap steps --- POSTINSTALL.md | 11 ++++++++++- README.md | 13 +++++++++++-- 2 files changed, 21 insertions(+), 3 deletions(-) diff --git a/POSTINSTALL.md b/POSTINSTALL.md index 57e2d67..4f3ff26 100644 --- a/POSTINSTALL.md +++ b/POSTINSTALL.md @@ -23,7 +23,7 @@ The installer now asks for dedicated hostnames for the Auth/Accounts/Cast/Albums ## Administration -- Use the bundled CLI from the Cloudron web terminal (CLI state lives in `/app/data/cli-data`). On a new deployment initialise it once: +- Use the bundled CLI from the Cloudron web terminal (CLI state lives in `/app/data/cli-data`). On a new deployment initialise it once (this seeds the CLI config, whitelists an admin email, and resets the CLI DB): ```bash # from the Cloudron terminal, logged in as root cat <<'EOF' >/cli-data/config.yaml @@ -34,6 +34,15 @@ log: EOF mkdir -p /cli-data/export chown cloudron:cloudron /cli-data /cli-data/config.yaml /cli-data/export + cat <<'EOF' >/app/data/config/museum.override.yaml +internal: + super-admins: + - admin@example.com +EOF + rm -f /cli-data/ente-cli.db + chown cloudron:cloudron /app/data/config/museum.override.yaml + + cloudron restart --app # store your account (enter the OTP emailed to you) sudo -u cloudron ente account add diff --git a/README.md b/README.md index 1478f78..1f55e55 100644 --- a/README.md +++ b/README.md @@ -64,7 +64,7 @@ After installing on Cloudron remember to: super-admins: - admin@example.com ``` -4. Use the bundled Ente CLI for admin tasks via `cloudron exec --app -- sudo -u cloudron ente --help`. On a fresh install run the following once (this initialises the CLI’s container-specific config and keystore): +4. Use the bundled Ente CLI for admin tasks via `cloudron exec --app -- sudo -u cloudron ente --help`. On a fresh install run the following once (initialises the CLI config, whitelists your admin, and clears the CLI DB): ```bash cloudron exec --app ente.cloudron.io -- bash -lc \ 'cat </cli-data/config.yaml @@ -74,7 +74,16 @@ log: http: false EOF mkdir -p /cli-data/export -chown cloudron:cloudron /cli-data /cli-data/config.yaml /cli-data/export' +chown cloudron:cloudron /cli-data /cli-data/config.yaml /cli-data/export +cat </app/data/config/museum.override.yaml +internal: + super-admins: + - admin@example.com +EOF +rm -f /cli-data/ente-cli.db +chown cloudron:cloudron /app/data/config/museum.override.yaml' + + cloudron restart --app ente.cloudron.io # add your account (respond to prompts with the OTP sent to your email) cloudron exec --app ente.cloudron.io -- sudo -u cloudron ente account add