From f4018db31000d0b98d75ff2a07eb3aed9c5e466a Mon Sep 17 00:00:00 2001 From: rhy-jot Date: Thu, 21 Nov 2013 10:48:55 -0800 Subject: [PATCH] Use $DOKKU_ROOT instead of $HOME --- dokku | 2 +- plugins/00_dokku-standard/pre-delete | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dokku b/dokku index d4c985131..8b95f9b9e 100755 --- a/dokku +++ b/dokku @@ -24,7 +24,7 @@ case "$1" in ;; build) - APP="$2"; IMAGE="$3"; CACHE_DIR="$HOME/$APP/cache" + APP="$2"; IMAGE="$3"; CACHE_DIR="$DOKKU_ROOT/$APP/cache" id=$(cat | docker run -i -a stdin progrium/buildstep /bin/bash -c "mkdir -p /app && tar -xC /app") test $(docker wait $id) -eq 0 docker commit $id $IMAGE > /dev/null diff --git a/plugins/00_dokku-standard/pre-delete b/plugins/00_dokku-standard/pre-delete index 8e057941a..f74a343a1 100755 --- a/plugins/00_dokku-standard/pre-delete +++ b/plugins/00_dokku-standard/pre-delete @@ -3,7 +3,7 @@ set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x APP="$1" IMAGE=app/"$1" -CACHE_DIR="$HOME/$APP/cache" +CACHE_DIR="$DOKKU_ROOT/$APP/cache" docker run -v $CACHE_DIR:/cache $IMAGE find /cache -depth -mindepth 1 -maxdepth 1 -exec rm -Rf {} \;