Skip to content
This repository was archived by the owner on Aug 16, 2021. It is now read-only.

Commit 7781e26

Browse files
dmiusDmitry
authored andcommitted
Live time duration default value added.
1 parent 11723f0 commit 7781e26

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

nancy_run.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ KEEP_ALIVE=0
1616
VERBOSE_OUTPUT_REDIRECT=" > /dev/null"
1717
EBS_SIZE_MULTIPLIER=15
1818
POSTGRES_VERSION_DEFAULT=10
19-
AWS_BLOCK_DURATION=0 # by default no time limit
19+
AWS_BLOCK_DURATION=0
2020

2121
#######################################
2222
# Print an error/warning/notice message to STDERR
@@ -613,11 +613,12 @@ if [[ "$RUN_ON" == "aws" ]]; then
613613
AWS_REGION='us-east-1'
614614
fi
615615
if [[ -z ${AWS_BLOCK_DURATION+x} ]]; then
616-
err "NOTICE: Container live time duration is not given."
616+
err "NOTICE: Container live time duration is not given. Will used 60 minutes."
617+
AWS_BLOCK_DURATION=60
617618
else
618619
case $AWS_BLOCK_DURATION in
619620
0|60|120|240|300|360)
620-
dbg "Container live time duration is $AWS_BLOCK_DURATION. "
621+
dbg "Container live time duration is $AWS_BLOCK_DURATION."
621622
;;
622623
*)
623624
err "Container live time duration (--aws-block-duration) has wrong value: $AWS_BLOCK_DURATION. Available values of AWS spot instance duration in minutes is 60, 120, 180, 240, 300, or 360)."

0 commit comments

Comments
 (0)