Add default port in this script.
This commit is contained in:
parent
aa20bd67ee
commit
18cd38b194
7
run.sh
7
run.sh
@ -41,6 +41,10 @@ while getopts ':p:h' opt; do
|
|||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
|
if [[ -z $ports ]]; then
|
||||||
|
ports=8080
|
||||||
|
fi
|
||||||
|
|
||||||
## Build Environment ##
|
## Build Environment ##
|
||||||
|
|
||||||
# Ensure we are executing from this file's directory.
|
# Ensure we are executing from this file's directory.
|
||||||
@ -87,9 +91,6 @@ find files/photos/ -name "*".html -print -delete
|
|||||||
count=1
|
count=1
|
||||||
http_code=0
|
http_code=0
|
||||||
port="${ports%% *}"
|
port="${ports%% *}"
|
||||||
if [[ -z $port ]]; then
|
|
||||||
port="8080"
|
|
||||||
fi
|
|
||||||
photos_uri=":$port/photos/"
|
photos_uri=":$port/photos/"
|
||||||
while [[ $http_code != "200" ]]; do
|
while [[ $http_code != "200" ]]; do
|
||||||
log "Sleeping for '$count' while waiting for $photos_uri to come up."
|
log "Sleeping for '$count' while waiting for $photos_uri to come up."
|
||||||
|
Loading…
x
Reference in New Issue
Block a user