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}"