Skip to content

Commit

Permalink
adempiere-docker#16 Remove the dependence for database image and not …
Browse files Browse the repository at this point in the history
…include the PostgreSQL version number #16
  • Loading branch information
e-Evolution committed Apr 4, 2018
1 parent f79075f commit 8ac5aa9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions application.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,25 +67,25 @@ then
docker network create -d bridge custom
fi

RUNNING=$(docker inspect --format="{{.State.Running}}" postgres96_database_1 2> /dev/null)
RUNNING=$(docker inspect --format="{{.State.Running}}" postgres_database_1 2> /dev/null)
if [ $? -eq 1 ]; then
echo "Dababase container does not exist."
echo "Create Database container"
docker-compose \
-f "$BASE_DIR/database.yml" \
-f "$BASE_DIR/database.volume.yml" \
-p postgres96 \
-p postgres \
up -d
fi

if [ "$RUNNING" == "false" ];
then
echo "CRITICAL - postgres96_database_1 is not running."
echo "CRITICAL - postgres_database_1 is not running."
echo "Starting Database"
docker-compose \
-f "$BASE_DIR/database.yml" \
-f "$BASE_DIR/database.volume.yml" \
-p postgres96 \
-p postgres \
start
fi

Expand All @@ -94,7 +94,7 @@ then
docker-compose \
-f "$BASE_DIR/database.yml" \
-f "$BASE_DIR/database.volume.yml" \
-p postgres96 \
-p postgres \
config
fi

Expand Down

0 comments on commit 8ac5aa9

Please sign in to comment.