Ability to set LOCAL_STORAGE and HTTP_ROOT options from env vars

Change-Id: I522b9dc4c7c53e546cfae40582f9ebc60298c2fe
This commit is contained in:
Igor Shishkin 2014-07-29 22:00:27 +04:00
parent 01735077e6
commit 327981b984
1 changed files with 4 additions and 5 deletions

View File

@ -13,12 +13,11 @@ then
fi
# Defaults
LOCAL_STORAGE="/var/www/fuelweb-iso"
TRACKER_URL='http://seed-qa.msk.mirantis.net:8080/announce'
HOSTNAME=`hostname -f`
HTTP_ROOT="http://${HOSTNAME}/fuelweb-iso"
[[ -z "${LOCAL_STORAGE}" ]] && LOCAL_STORAGE="/var/www/fuelweb-iso"
[[ -z "${TRACKER_URL}" ]] && TRACKER_URL='http://seed-qa.msk.mirantis.net:8080/announce'
[[ -z "${HTTP_ROOT}" ]] && HTTP_ROOT="http://${HOSTNAME}/fuelweb-iso"
# Process artifact