mirror of
https://github.com/community-scripts/ProxmoxVED.git
synced 2026-04-05 08:54:03 -04:00
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:
|
||||
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
|
||||
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user