diff options
Diffstat (limited to 'ci/detect_installer.sh')
-rwxr-xr-x | ci/detect_installer.sh | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/ci/detect_installer.sh b/ci/detect_installer.sh new file mode 100755 index 0000000..035b7e2 --- /dev/null +++ b/ci/detect_installer.sh @@ -0,0 +1,22 @@ +#!/bin/bash -x +############################################################################## +# Copyright (c) 2015 EMC and others. +# +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Apache License, Version 2.0 +# which accompanies this distribution, and is available at +# http://www.apache.org/licenses/LICENSE-2.0 +############################################################################## + +which juju 2>/dev/null +if [ $? -eq 0 ] +then + INSTALLER=joid +fi +sudo virsh list --all | grep undercloud >/dev/null +if [ $? -eq 0 ] +then + INSTALLER=apex +fi + +echo $INSTALLER
\ No newline at end of file |