File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change 11#! /bin/bash
22
3+ USER=" admin"
4+ PASS=" admin"
5+ AUTH_MODE=" anyauth"
6+ AUTH_CURL=" curl --${AUTH_MODE} --user ${USER} :${PASS} "
7+ SEC_REALM=" public"
8+ N_RETRY=10
9+ RETRY_INTERVAL=5
10+
311# ######################################################
412# taken from https://github.com/grtjn/mlvagrant/blob/master/opt/vagrant/setup-ml-master.sh
513#
@@ -37,9 +45,9 @@ sleep 30
3745
3846TIMESTAMP=` curl -X POST \
3947 -H " Content-type: application/x-www-form-urlencoded" \
40- --data " admin-username=admin " \
41- --data " admin-password=admin " \
42- --data " realm=public " \
48+ --data " admin-username=${USER} " \
49+ --data " admin-password=${PASSWORD} " \
50+ --data " realm=${SEC_REALM} " \
4351 " http://localhost:8001/admin/v1/instance-admin" \
4452 | grep " last-startup" \
4553 | sed ' s%^.*<last-startup.*>\(.*\)</last-startup>.*$%\1%' `
You can’t perform that action at this time.
0 commit comments