From d983c963553ee7b755a85d82121f21ea80027520 Mon Sep 17 00:00:00 2001 From: binhex Date: Thu, 8 Nov 2018 21:04:35 +0000 Subject: [PATCH] remove lock file --- run/nobody/qbittorrent.sh | 3 +++ run/nobody/watchdog.sh | 11 +++++++---- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/run/nobody/qbittorrent.sh b/run/nobody/qbittorrent.sh index e4568cc..d728b0f 100644 --- a/run/nobody/qbittorrent.sh +++ b/run/nobody/qbittorrent.sh @@ -19,6 +19,9 @@ if [[ "${qbittorrent_running}" == "true" ]]; then fi +echo "[info] Removing session lock file (if it exists)..." +rm -f /config/qBittorrent/data/BT_backup/session.lock + echo "[info] Attempting to start qBittorrent..." if [[ "${VPN_ENABLED}" == "yes" ]]; then diff --git a/run/nobody/watchdog.sh b/run/nobody/watchdog.sh index bd382a4..c313dac 100644 --- a/run/nobody/watchdog.sh +++ b/run/nobody/watchdog.sh @@ -1,15 +1,15 @@ #!/bin/bash # define destination file path for qbittorrent config file -qbittorrent_config="/config/qbittorrent/config/qbittorrent.conf" +qbittorrent_config="/config/qBittorrent/config/qbittorrent.conf" # if qbittorrent config file doesnt exist then copy default to host config volume if [[ ! -f "${qbittorrent_config}" ]]; then - echo "[info] qBittorrent config file doesnt exist, copying default to /config/qbittorrent/config/..." + echo "[info] qBittorrent config file doesnt exist, copying default to /config/qBittorrent/config/..." - # copy default qbittorrent config file to /config/qbittorrent/config/ - mkdir -p /config/qbittorrent/config && cp /home/nobody/qbittorrent/config/* /config/qbittorrent/config/ + # copy default qbittorrent config file to /config/qBittorrent/config/ + mkdir -p /config/qBittorrent/config && cp /home/nobody/qbittorrent/config/* /config/qBittorrent/config/ else @@ -17,6 +17,9 @@ else fi +echo "[info] Removing session lock file (if it exists)..." +rm -f /config/qBittorrent/data/BT_backup/session.lock + # force unix line endings conversion in case user edited qbittorrent.conf with notepad dos2unix "${qbittorrent_config}"