Skip to content

Commit

Permalink
Add REDIS_URL leftover check. Fixes #8
Browse files Browse the repository at this point in the history
  • Loading branch information
msjyoo committed Mar 17, 2015
1 parent e8746ab commit 1c5dd76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion commands
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ case "$1" in
REDIS_VOLUME_DIR="$DOKKU_ROOT/.redis/volume-$APP"
REDIS_CONTAINER_ID=$(docker ps | grep "$REDIS_CONTAINER_NAME" | awk '{print $1}')

if [[ ! -f $REDIS_FLAG_PERSISTENCE_FILE ] && [ ! -f $REDIS_FLAG_LINK_FILE ] && [ ! -d $REDIS_VOLUME_DIR ] && [ -z $REDIS_CONTAINER_ID ]]; then
if [[ ! -f $REDIS_FLAG_PERSISTENCE_FILE ]] && [[ ! -f $REDIS_FLAG_LINK_FILE ]] && [[ ! -d $REDIS_VOLUME_DIR ]] && [[ -z $REDIS_CONTAINER_ID ]] && [[ -z $(dokku config:get $APP REDIS_URL)]]; then
dokku_log_fail "No Redis instance / leftovers found for $APP"
fi

Expand Down

0 comments on commit 1c5dd76

Please sign in to comment.