summaryrefslogtreecommitdiffstats
path: root/ci/deploy.sh
diff options
context:
space:
mode:
Diffstat (limited to 'ci/deploy.sh')
-rwxr-xr-xci/deploy.sh10
1 files changed, 9 insertions, 1 deletions
diff --git a/ci/deploy.sh b/ci/deploy.sh
index 89dcfe0b..d933dbef 100755
--- a/ci/deploy.sh
+++ b/ci/deploy.sh
@@ -126,7 +126,15 @@ deploy() {
python genDeploymentConfig.py -l labconfig.yaml > deployconfig.yaml
fi
else
- echo " MAAS not deployed please deploy MAAS first."
+ if [ -e ./labconfig.yaml ]; then
+ if [ ! -f ./deployconfig.yaml ] && [ -e ~/joid_config/deployconfig.yaml ]; then
+ cp ~/joid_config/deployconfig.yaml ./deployconfig.yaml
+ else
+ python genDeploymentConfig.py -l labconfig.yaml > deployconfig.yaml
+ fi
+ else
+ echo " MAAS not deployed please deploy MAAS first."
+ fi
fi
else
if [ ! -f ./environments.yaml ] && [ -e ~/.juju/environments.yaml ]; then