From 9f46d0d70ee673ad50f7fde302e4f0b0d471fc2c Mon Sep 17 00:00:00 2001 From: robocopAlpha Date: Wed, 21 Jul 2021 06:55:46 +0300 Subject: [PATCH] Fix: dropbox now mounts in the cron job --- pull.lists.sh | 2 +- set_env.sh | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/pull.lists.sh b/pull.lists.sh index 25280cf..698bcc7 100755 --- a/pull.lists.sh +++ b/pull.lists.sh @@ -23,7 +23,7 @@ if [[ -d "${HOME_DIR}/dropbox" ]]; then else mkdir "${HOME_DIR}/dropbox" fi -rclone mount --daemon dropbox:blocklist "${HOME_DIR}/dropbox" --volname dropbox || { echo "Failed to mount dropbox. Execution terminated!"; exit 1; } +rclone mount --daemon dropbox:blocklist "${HOME_DIR}/dropbox" --volname=dropbox --config="${RCloneConfig}" || { echo "Failed to mount dropbox. Execution terminated!"; exit 1; } cd "${WRK_DIR}/" echo $(date +%d.%m.%y-%H:%M:%S) >| lastpull diff --git a/set_env.sh b/set_env.sh index 9e9d7ad..0d2ddea 100644 --- a/set_env.sh +++ b/set_env.sh @@ -34,6 +34,7 @@ if [ "$(uname)" == "Darwin" ]; then # echo "$(md5 -q ${1})" # } HOME_DIR=/Users/deepankar/OneDrive\ -\ O365\ Turun\ yliopisto/Git/Gitlab.DC + RCloneConfig=/Users/deepankar/.config/rclone/rclone.conf elif [ "$(uname)" == "Linux" ]; then # echo "Setting params for Linux..." # getMD5() @@ -42,6 +43,7 @@ elif [ "$(uname)" == "Linux" ]; then # echo "$(md5sum ${1} | cut -c -32)" # } HOME_DIR=/home/dietpi + RCloneConfig=/home/dietpi/.config/rclone/rclone.conf else echo "Only MacOS and Linux are supported." exit 1