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
This commit is contained in:
@@ -106,6 +106,9 @@ key:
|
|||||||
jwt:
|
jwt:
|
||||||
secret: $SECRET_JWT
|
secret: $SECRET_JWT
|
||||||
|
|
||||||
|
internal:
|
||||||
|
admins: []
|
||||||
|
|
||||||
# SMTP not configured - verification codes will appear in logs
|
# SMTP not configured - verification codes will appear in logs
|
||||||
# To configure SMTP, add:
|
# To configure SMTP, add:
|
||||||
# smtp:
|
# smtp:
|
||||||
@@ -310,7 +313,7 @@ if [ -z "$1" ]; then
|
|||||||
fi
|
fi
|
||||||
EMAIL="$1"
|
EMAIL="$1"
|
||||||
echo "Upgrading subscription for: $EMAIL"
|
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
|
EOF
|
||||||
chmod +x /usr/local/bin/ente-upgrade-subscription
|
chmod +x /usr/local/bin/ente-upgrade-subscription
|
||||||
|
|
||||||
|
|||||||
@@ -41,7 +41,11 @@
|
|||||||
"type": "warning"
|
"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"
|
"type": "warning"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user