Recognise undeployed apps when undeploying
Some checks failed
continuous-integration/drone/push Build is failing

Closes https://git.autonomic.zone/coop-cloud/abra/issues/123.
This commit is contained in:
decentral1se
2021-03-26 00:01:07 +01:00
parent b28460cf84
commit e361b493b1
2 changed files with 5 additions and 0 deletions

4
abra
View File

@ -1223,6 +1223,10 @@ sub_app_undeploy (){
prompt_confirm
fi
if ! docker stack ls --format "{{ .Name }}" | grep -q "$STACK_NAME"; then
error "$STACK_NAME is already undeployed, nothing to do"
fi
docker stack rm "$STACK_NAME"
}