mirror of
https://github.com/Websoft9/websoft9.git
synced 2025-01-24 10:17:15 +08:00
Update create_users.sh
This commit is contained in:
parent
2b8a4e5214
commit
0036700216
@ -2,8 +2,7 @@
|
||||
# copy from: https://www.metabase.com/learn/administration/serialization#add-users-to-our-metabase-origin-environment
|
||||
|
||||
ADMIN_EMAIL=${MB_ADMIN_EMAIL:-admin@metabase.local}
|
||||
ADMIN_PASSWORD=${MB_ADMIN_PASSWORD:-Metapass123}
|
||||
|
||||
ADMIN_PASSWORD=${POWER_PASSWORD:-Metapass123}
|
||||
METABASE_HOST=${MB_HOSTNAME}
|
||||
METABASE_PORT=${MB_PORT:-3000}
|
||||
|
||||
@ -47,4 +46,4 @@ curl -s "http://${METABASE_HOST}:${METABASE_PORT}/api/user" \
|
||||
-H "X-Metabase-Session: ${MB_TOKEN}" \
|
||||
-d '{"first_name":"Basic 2","last_name":"User","email":"basic2@somewhere.com","login_attributes":{"region_filter":"CA"},"password":"'${ADMIN_PASSWORD}'"}'
|
||||
|
||||
echo -e "\n👥 Basic users created!"
|
||||
echo -e "\n👥 Basic users created!"
|
||||
|
Loading…
Reference in New Issue
Block a user