Fix: dropbox now mounts in the cron job

This commit is contained in:
robocopAlpha 2021-07-21 06:55:46 +03:00
parent 50047c2bab
commit 9f46d0d70e
2 changed files with 3 additions and 1 deletions

View file

@ -23,7 +23,7 @@ if [[ -d "${HOME_DIR}/dropbox" ]]; then
else else
mkdir "${HOME_DIR}/dropbox" mkdir "${HOME_DIR}/dropbox"
fi 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}/" cd "${WRK_DIR}/"
echo $(date +%d.%m.%y-%H:%M:%S) >| lastpull echo $(date +%d.%m.%y-%H:%M:%S) >| lastpull

View file

@ -34,6 +34,7 @@ if [ "$(uname)" == "Darwin" ]; then
# echo "$(md5 -q ${1})" # echo "$(md5 -q ${1})"
# } # }
HOME_DIR=/Users/deepankar/OneDrive\ -\ O365\ Turun\ yliopisto/Git/Gitlab.DC HOME_DIR=/Users/deepankar/OneDrive\ -\ O365\ Turun\ yliopisto/Git/Gitlab.DC
RCloneConfig=/Users/deepankar/.config/rclone/rclone.conf
elif [ "$(uname)" == "Linux" ]; then elif [ "$(uname)" == "Linux" ]; then
# echo "Setting params for Linux..." # echo "Setting params for Linux..."
# getMD5() # getMD5()
@ -42,6 +43,7 @@ elif [ "$(uname)" == "Linux" ]; then
# echo "$(md5sum ${1} | cut -c -32)" # echo "$(md5sum ${1} | cut -c -32)"
# } # }
HOME_DIR=/home/dietpi HOME_DIR=/home/dietpi
RCloneConfig=/home/dietpi/.config/rclone/rclone.conf
else else
echo "Only MacOS and Linux are supported." echo "Only MacOS and Linux are supported."
exit 1 exit 1