Replace STACK_YAML_PATH with DOCKER_COMPOSE_FILE

This commit is contained in:
Juan Carlos Mejías Rodríguez 2018-11-25 11:04:12 -05:00
parent b87976549c
commit 44c56fa43a

4
psu Executable file → Normal file
View File

@ -70,9 +70,7 @@ echo_debug () {
# Create/update a stack # # Create/update a stack #
######################### #########################
deploy () { deploy () {
STACK_YAML_PATH=$DOCKER_COMPOSE_FILE STACK_YAML_CONTENT=$(cat "$DOCKER_COMPOSE_FILE")
STACK_YAML_CONTENT=$(cat "$STACK_YAML_PATH")
# Escape carriage returns # Escape carriage returns
STACK_YAML_CONTENT="${STACK_YAML_CONTENT//$'\r'/''}" STACK_YAML_CONTENT="${STACK_YAML_CONTENT//$'\r'/''}"