Clarify admin bootstrap steps

This commit is contained in:
Andreas Dueren
2025-11-04 18:02:46 -06:00
parent 0652dde795
commit c9e554c9a8
2 changed files with 21 additions and 3 deletions

View File

@@ -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 <your-app-domain>
# store your account (enter the OTP emailed to you)
sudo -u cloudron ente account add

View File

@@ -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 <location> -- sudo -u cloudron ente --help`. On a fresh install run the following once (this initialises the CLIs container-specific config and keystore):
4. Use the bundled Ente CLI for admin tasks via `cloudron exec --app <location> -- 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 <<EOF >/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 <<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 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