Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Update script to be compatible with docker 1.7.0 #78

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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