Support >2 COMPOSE_FILEs

This commit is contained in:
3wc 2020-10-31 17:51:56 +02:00
parent f8306b282d
commit 80f06ba0e1

4
abra
View File

@ -520,7 +520,7 @@ sub_app_deploy (){
(
cd "$APP_DIR" || error "\$APP_DIR '$APP_DIR' not found"
# shellcheck disable=SC2086
if docker stack deploy -c ${COMPOSE_FILE/:/ -c } "$STACK_NAME"; then
if docker stack deploy -c ${COMPOSE_FILE//:/ -c } "$STACK_NAME"; then
if [ -n "$DOMAIN" ]; then
success "Yay! App should be available at https://${DOMAIN}"
else
@ -537,7 +537,7 @@ sub_app_undeploy (){
load_instance
load_instance_env
warning "Un-deploy $STACK_NAME from $SERVER?"
warning "About to un-deploy $STACK_NAME from $SERVER"
prompt_confirm
docker stack rm "$STACK_NAME"