shell condition

This commit is contained in:
kexkey
2019-04-04 21:33:58 -04:00
committed by kexkey
parent 03f106cf16
commit 5dde035668
2 changed files with 4 additions and 4 deletions

View File

@@ -9,8 +9,8 @@ export SHARED_HTPASSWD_PATH
export GATEKEEPER_DATAPATH
export APP_SCRIPT_PATH
if [ "$DOCKER_MODE" == "swarm" ]; then
if [ "$DOCKER_MODE" = "swarm" ]; then
docker stack deploy -c $APP_SCRIPT_PATH/docker-compose.yaml cn_welcome
elif [ "$DOCKER_MODE" == "compose" ]; then
elif [ "$DOCKER_MODE" = "compose" ]; then
docker-compose -f $APP_SCRIPT_PATH/docker-compose.yaml up -d --remove-orphans
fi

View File

@@ -5,8 +5,8 @@ echo "APP_SCRIPT_PATH: $APP_SCRIPT_PATH"
echo "APP_START_SCRIPT_PATH: $APP_START_SCRIPT_PATH"
echo "GATEKEEPER_DATAPATH: $GATEKEEPER_DATAPATH"
if [ "$DOCKER_MODE" == "swarm" ]; then
if [ "$DOCKER_MODE" = "swarm" ]; then
docker stack rm cn_welcome
elif [ "$DOCKER_MODE" == "compose" ]; then
elif [ "$DOCKER_MODE" = "compose" ]; then
docker-compose -f $APP_SCRIPT_PATH/docker-compose.yaml down
fi