From c9bc9966fc5405c250deec2da9a1646888c37149 Mon Sep 17 00:00:00 2001 From: Alex Yang Date: Wed, 31 Aug 2016 16:22:18 +0800 Subject: installation script quits when no kingbird user/service exists Change-Id: I5ea6c81f959e9e79b0022b889e6e378c68884052 Signed-off-by: Alex Yang --- tools/kingbird/install_kingbird.sh | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tools/kingbird') diff --git a/tools/kingbird/install_kingbird.sh b/tools/kingbird/install_kingbird.sh index 96f13c3..8619ff3 100644 --- a/tools/kingbird/install_kingbird.sh +++ b/tools/kingbird/install_kingbird.sh @@ -89,6 +89,8 @@ mysql -uroot -e "DROP DATABASE IF EXISTS $mysql_db;" mysql -uroot -e "CREATE DATABASE $mysql_db CHARACTER SET utf8;" mysql -uroot -e "GRANT ALL PRIVILEGES ON $mysql_db.* TO '$mysql_user'@'$mysql_host' IDENTIFIED BY '$mysql_pass';" +set +e + #Configure kingbird user openstack user show kingbird 2>/dev/null if [ $? -eq 0 ]; then @@ -113,6 +115,8 @@ else --region ${OS_REGION_NAME} fi +set -e + # Cleanup the folder before making a fresh clone rm -rf kingbird/ -- cgit 1.2.3-korg