-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathadd_users.sh
executable file
·13 lines (12 loc) · 855 Bytes
/
add_users.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
USER_EMAIL="[email protected]"
USER_PASS="Password1!"
USER_NAME="bill"
docker exec test_mm bash -c 'until mmctl --local system status 2> /dev/null; do echo "waiting for server to become available"; sleep 5; done'
docker exec test_mm mmctl --local team create --name botsample display_name "Sample Bot playground" --email "[email protected]"
docker exec test_mm mmctl --local user create --email="[email protected]" --password="Password1!" --username="samplebot"
docker exec test_mm mmctl --local user create --email="${USER_EMAIL}" --password="${USER_PASS}" --username="${USER_NAME}"
docker exec test_mm mmctl --local roles system_admin bill
docker exec test_mm mmctl --local team users add botsample samplebot bill
docker exec test_mm mmctl --local user verify samplebot
echo "Default user credentials"
echo "Email: ${USER_EMAIL} - Password: ${USER_PASS}"