Skip to content

Commit 3b03bb1

Browse files
committed
forgot a few variables
1 parent 846684b commit 3b03bb1

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

shared/dev-tasks/setup-marklogic.sh

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
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

3846
TIMESTAMP=`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%'`

0 commit comments

Comments
 (0)