From 4b2c538ed9905f5532b3f71a4bf5b14a0743c5c5 Mon Sep 17 00:00:00 2001 From: "CanbiZ (MickLesk)" <47820557+MickLesk@users.noreply.github.com> Date: Fri, 27 Mar 2026 15:36:01 +0100 Subject: [PATCH] fix(ente): add admin config section and fix CLI flags - Add 'internal: admins: []' section to museum.yaml so admin CLI commands work after adding email to the list - Fix --no-limit flag in helper script (requires 'True' argument) - Add admin setup step to JSON first-start notes --- install/ente-install.sh | 5 ++++- json/ente.json | 8 ++++++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/install/ente-install.sh b/install/ente-install.sh index e3a4eba3..ad304d93 100644 --- a/install/ente-install.sh +++ b/install/ente-install.sh @@ -106,6 +106,9 @@ key: jwt: secret: $SECRET_JWT +internal: + admins: [] + # SMTP not configured - verification codes will appear in logs # To configure SMTP, add: # smtp: @@ -310,7 +313,7 @@ if [ -z "$1" ]; then fi EMAIL="$1" echo "Upgrading subscription for: $EMAIL" -ente admin update-subscription -a "$EMAIL" -u "$EMAIL" --no-limit +ente admin update-subscription -a "$EMAIL" -u "$EMAIL" --no-limit True EOF chmod +x /usr/local/bin/ente-upgrade-subscription diff --git a/json/ente.json b/json/ente.json index 6539a689..7b21365b 100644 --- a/json/ente.json +++ b/json/ente.json @@ -41,7 +41,11 @@ "type": "warning" }, { - "text": "First-Start: Add your account to the CLI: `ente account add` (server URL: http://localhost:8080)", + "text": "First-Start: Add your email as admin in museum.yaml: under `internal: admins:` add your email, then `systemctl restart ente-museum`", + "type": "warning" + }, + { + "text": "First-Start: Add your account to the CLI: `ente account add` (export dir: any path, e.g. /photos)", "type": "warning" }, { @@ -57,4 +61,4 @@ "type": "info" } ] -} +} \ No newline at end of file