fix: respect the TMPDIR environment variable
Refs dokku/dokku-redis#143
This commit is contained in:
@@ -188,7 +188,7 @@ service_backup() {
|
||||
dokku_log_fail "Provide AWS credentials or use the --use-iam flag"
|
||||
fi
|
||||
|
||||
TMPDIR=$(mktemp -d)
|
||||
TMPDIR=$(mktemp -d --tmpdir)
|
||||
trap 'rm -rf "$TMPDIR" > /dev/null' RETURN INT TERM EXIT
|
||||
|
||||
docker inspect "$ID" &>/dev/null || dokku_log_fail "Service container does not exist"
|
||||
|
||||
Reference in New Issue
Block a user