|
@ -25,6 +25,10 @@ PATH=/usr/local/bin:$PATH |
|
|
payload=$(mktemp $TMPDIR/rclone-resource-request.XXXXXX) |
|
|
payload=$(mktemp $TMPDIR/rclone-resource-request.XXXXXX) |
|
|
cat > $payload <&0 |
|
|
cat > $payload <&0 |
|
|
|
|
|
|
|
|
|
|
|
# TODO: Remove Me - DEBUGGING |
|
|
|
|
|
echo "Payload:" |
|
|
|
|
|
cat $payload |
|
|
|
|
|
|
|
|
load_config $payload |
|
|
load_config $payload |
|
|
load_files $payload |
|
|
load_files $payload |
|
|
|
|
|
|
|
@ -32,6 +36,10 @@ rclone_source_directory=$(jq -r '.params.source // ""' < $payload) |
|
|
rclone_destination=$(jq -r '.params.destination // ""' < $payload) |
|
|
rclone_destination=$(jq -r '.params.destination // ""' < $payload) |
|
|
rclone_destination_subdir_file=$(jq -r '.params.subdir // ""' < $payload) |
|
|
rclone_destination_subdir_file=$(jq -r '.params.subdir // ""' < $payload) |
|
|
|
|
|
|
|
|
|
|
|
echo "Source directory: $rclone_source_directory" |
|
|
|
|
|
echo "Destination: $rclone_destination" |
|
|
|
|
|
echo "Destination subdir file: $rclone_destination_subdir_file" |
|
|
|
|
|
|
|
|
if [ -z "$rclone_source_directory" ]; then |
|
|
if [ -z "$rclone_source_directory" ]; then |
|
|
echo "invalid source directory (missing source)" |
|
|
echo "invalid source directory (missing source)" |
|
|
exit 1 |
|
|
exit 1 |
|
|