Recognise undeployed apps when undeploying

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
No known key found for this signature in database
GPG Key ID: 92DAD76BD9567B8A
2 changed files with 5 additions and 0 deletions

View File

@ -24,6 +24,7 @@
- Replace `--force` with a global `--no-prompt` for avoiding interactive questions ([#118](https://git.autonomic.zone/coop-cloud/abra/issues/118))
- Use [docker-stack-wait-deploy](https://github.com/vitalets/docker-stack-wait-deploy) inspired logic to deploy apps ([#116](https://git.autonomic.zone/coop-cloud/abra/issues/116))
- Add a domain polling check when deploying apps ([#113](https://git.autonomic.zone/coop-cloud/abra/issues/113))
- Recognise when apps are already undeployed with `abra app <app> undeploy` ([#123](https://git.autonomic.zone/coop-cloud/abra/issues/123))
# abra 0.6.0 (2021-03-17)

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"
}