Update create_users.sh

This commit is contained in:
qiaofeng1227 2022-07-13 14:24:49 +08:00 committed by GitHub
parent 2b8a4e5214
commit 0036700216
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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!"