summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/kingbird/install_kingbird.sh7
1 files changed, 3 insertions, 4 deletions
diff --git a/tools/kingbird/install_kingbird.sh b/tools/kingbird/install_kingbird.sh
index e4f8a3c..25d9b88 100644
--- a/tools/kingbird/install_kingbird.sh
+++ b/tools/kingbird/install_kingbird.sh
@@ -113,6 +113,9 @@ else
--region ${OS_REGION_NAME}
fi
+# Cleanup the folder before making a fresh clone
+rm -rf kingbird/
+
#Setup Kingbird
git clone https://github.com/openstack/kingbird.git && cd kingbird/
@@ -122,10 +125,6 @@ pip install --force-reinstall -U .
mkdir -p /etc/kingbird/
oslo-config-generator --config-file tools/config-generator.conf --output-file ${KINGBIRD_CONF_FILE}
-# Delete previous repo clone
-cd ..
-rm -rf kingbird/
-
# Configure host section
iniset ${KINGBIRD_CONF_FILE} DEFAULT bind_host ${bind_host}
iniset ${KINGBIRD_CONF_FILE} DEFAULT bind_port ${KINGBIRD_PORT}