File tree Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change 11#! /bin/bash
22
3- now=$( date +%s)
4-
53if [[ ! " $SECONDS_UNTIL_REF_SLOT " =~ ^[0-9]* $ ]] || [[ " $SECONDS_UNTIL_REF_SLOT " -le 0 ]]; then
64 echo " Error: \$ {SECONDS_UNTIL_REF_SLOT} must be a positive integer of seconds, which will be added to the execution time of this script." >&2
75 exit 1
@@ -38,6 +36,13 @@ if [[ -z "${REF_SLOT}" ]] || [[ ! "$REF_SLOT" =~ ^[0-9]*$ ]] || [[ "$REF_SLOT" -
3836 exit 1
3937fi
4038
39+ now=$( date +%s)
40+ ONSET_OF_REF_SLOT=$(( $now + ${SECONDS_UNTIL_REF_SLOT} ))
41+ echo " REF_SLOT=$REF_SLOT "
42+ echo " ONSET_OF_REF_SLOT=$ONSET_OF_REF_SLOT "
43+ echo " $REF_SLOT " > ref_slot
44+ echo " $ONSET_OF_REF_SLOT " > onset_of_ref_slot
45+
4146# arbitrary choices
4247
4348PORT1=3001
@@ -152,12 +157,6 @@ popd > /dev/null
152157# # Run immdb-server
153158# #
154159
155- ONSET_OF_REF_SLOT=$(( $now + ${SECONDS_UNTIL_REF_SLOT} ))
156- echo " REF_SLOT=$REF_SLOT "
157- echo " ONSET_OF_REF_SLOT=$ONSET_OF_REF_SLOT "
158- echo " $REF_SLOT " > ref_slot
159- echo " $ONSET_OF_REF_SLOT " > onset_of_ref_slot
160-
161160IMMDB_CMD_CORE=" ${IMMDB_SERVER} \
162161 --db $CLUSTER_RUN_DATA /immdb-node/immutable/ \
163162 --config $CLUSTER_RUN_DATA /immdb-node/config.json \
You can’t perform that action at this time.
0 commit comments