diff options
author | Mark Beierl <mark.beierl@dell.com> | 2017-09-14 18:55:27 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2017-09-14 18:55:27 +0000 |
commit | 11b25082420e359dfaf2e36eacd533d1f5b49aa9 (patch) | |
tree | 6d437fb21a6c186a6753a0acbda2c7878af83dba /ci/detect_installer.sh | |
parent | e447ee55b2a57979f4a8fb002f1f80d6fae0cbe1 (diff) | |
parent | f92f97f53e3ee43c5d3b75673122ec9f94db196e (diff) |
Merge "Add Multi Arch to Docker"
Diffstat (limited to 'ci/detect_installer.sh')
-rwxr-xr-x | ci/detect_installer.sh | 15 |
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 |