Skip to content

Commit

Permalink
Update script to be compatible with docker 1.7.0
Browse files Browse the repository at this point in the history
Closes Kloadut#77
Closes Kloadut#78
  • Loading branch information
josegonzalez committed Sep 24, 2015
1 parent 35edfeb commit 8cfc679
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions commands
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ function check_postgresql_tool() {
}

function get_postgresql_id() {
ID=$(docker ps | grep postgresql/"$APP":latest | awk {'print $1'})
ID=$(docker ps | grep postgresql/"$APP" | awk {'print $1'})
echo $ID
}

Expand Down Expand Up @@ -103,7 +103,7 @@ case "$1" in
sleep 4
# Rename persistent volume
if [[ ! -f "$DOKKU_ROOT/.postgresql/volume_$APP" ]]; then
VOLUME_PATH=$(docker inspect $ID | grep /var/lib/docker/vfs/dir/ | awk '{print $2}' | sed -e's/"//g')
VOLUME_PATH=$(docker inspect $ID | grep /var/lib/docker/volumes | awk '{print $2}' | sed -e's/"//g')
if [[ -z $VOLUME_PATH ]]; then
echo "Your docker version is too old, please update it"
exit 1
Expand Down

0 comments on commit 8cfc679

Please sign in to comment.