mirror of
https://github.com/linuxserver/docker-qbittorrent.git
synced 2025-06-28 09:18:23 -04:00
Fix formatting, restore 4.3.3 migration check.
This commit is contained in:
parent
f4688d02a6
commit
7c0eb4e676
2 changed files with 13 additions and 6 deletions
|
@ -7,6 +7,13 @@ mkdir -p /config/qBittorrent
|
||||||
[[ ! -e /config/qBittorrent/qBittorrent.conf ]] && \
|
[[ ! -e /config/qBittorrent/qBittorrent.conf ]] && \
|
||||||
cp /defaults/qBittorrent.conf /config/qBittorrent/qBittorrent.conf
|
cp /defaults/qBittorrent.conf /config/qBittorrent/qBittorrent.conf
|
||||||
|
|
||||||
|
# v4.3.3 BT_backup migration
|
||||||
|
[[ -d /config/data/qBittorrent/BT_backup/ ]] && \
|
||||||
|
mv /config/qBittorrent/BT_backup/ /config/qBittorrent/BT_backup.bak/ && \
|
||||||
|
mkdir /config/qBittorrent/BT_backup/ && \
|
||||||
|
cp -a /config/data/qBittorrent/BT_backup/. /config/qBittorrent/BT_backup/ && \
|
||||||
|
mv /config/data/qBittorrent/BT_backup/ /config/data/qBittorrent/BT_backup.old/
|
||||||
|
|
||||||
# chown download directory if currently not set to abc
|
# chown download directory if currently not set to abc
|
||||||
if [[ -d /downloads ]]; then
|
if [[ -d /downloads ]]; then
|
||||||
if [[ "$(stat -c '%U' /downloads)" != "abc" ]]; then
|
if [[ "$(stat -c '%U' /downloads)" != "abc" ]]; then
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue