mirror of
https://github.com/dokku/dokku.git
synced 2025-12-29 00:25:08 +01:00
8 lines
285 B
Bash
Executable File
8 lines
285 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
|
|
|
|
APP="$1"; IMAGE="dokku/$APP"; CACHE_DIR="$DOKKU_ROOT/$APP/cache"
|
|
if [[ -d $CACHE_DIR ]]; then
|
|
docker run --rm -v "$CACHE_DIR:/cache" "$IMAGE" find /cache -depth -mindepth 1 -maxdepth 1 -exec rm -Rf {} \; || true
|
|
fi
|