summaryrefslogtreecommitdiffstats
path: root/ci/detect_installer.sh
diff options
context:
space:
mode:
Diffstat (limited to 'ci/detect_installer.sh')
-rwxr-xr-xci/detect_installer.sh15
1 files changed, 8 insertions, 7 deletions
diff --git a/ci/detect_installer.sh b/ci/detect_installer.sh
index 035b7e2..afa1f74 100755
--- a/ci/detect_installer.sh
+++ b/ci/detect_installer.sh
@@ -8,15 +8,16 @@
# http://www.apache.org/licenses/LICENSE-2.0
##############################################################################
-which juju 2>/dev/null
-if [ $? -eq 0 ]
-then
+if which juju >/dev/null 2>&1 ; then
INSTALLER=joid
fi
-sudo virsh list --all | grep undercloud >/dev/null
-if [ $? -eq 0 ]
-then
+
+if sudo virsh list --all | grep -q undercloud ; then
INSTALLER=apex
fi
-echo $INSTALLER \ No newline at end of file
+if sudo virsh list --all | grep -q cfg01 ; then
+ INSTALLER=fuel
+fi
+
+echo $INSTALLER