From 40fac95d8a4be05654a26b620fbd2704c34dec51 Mon Sep 17 00:00:00 2001 From: Drew Short Date: Wed, 22 Jan 2020 20:56:18 -0600 Subject: [PATCH] Cleanup readme and change tmp directory --- README.md | 10 +++++----- assets/common.sh | 3 ++- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 2a1d9a7..d26e18c 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# concourse-rclone-compose-resource +# concourse-rclone-resource A Concourse CI resource that executes [`rclone`](https://rclone.org/) against a remote host. @@ -24,14 +24,14 @@ resource_types: * `config`: Required. The rclone config file contents to use. * `password`: Optional. Encryption password used for encrypted rclone configurations. Please use secrets management for this value. -* `files`: Optional. Additional files to write to the /tmp directory. This is a map of key/value pairs for the filename and contents of that file. +* `files`: Optional. Additional files to write to the /tmp/rclone directory. This is a map of key/value pairs for the filename and contents of that file. ### Example ```bash resources: -- name: docker-compose - type: docker-compose +- name: rclone + type: rclone source: config: | [remote] @@ -39,7 +39,7 @@ resources: client_secret = scope = drive root_folder_id = - service_account_file = /tmp/serviceAccountFile + service_account_file = /tmp/rclone/serviceAccountFile token = {"access_token":"XXX","token_type":"Bearer","refresh_token":"XXX","expiry":"2014-03-16T13:57:58.955387075Z"} ``` diff --git a/assets/common.sh b/assets/common.sh index 064fe9b..dc6f1db 100644 --- a/assets/common.sh +++ b/assets/common.sh @@ -1,5 +1,6 @@ #!/usr/bin/bash -export TMPDIR=${TMPDIR:-/tmp} +export TMPDIR=${TMPDIR:-/tmp/rclone} +mkdir -p "${TMPDIR}" load_config() { local config_path=$TMPDIR/rclone_config