mirror of
https://github.com/linuxserver/docker-qbittorrent.git
synced 2025-06-27 17:00:42 -04:00
Safer BT_backup migration
Backup /config/qBittorrent/BT_backup/ before we copy anything Rename /config/data/qBittorrent/BT_backup/ after copy so we don't do it again.
This commit is contained in:
parent
b1d457d6cf
commit
5bb96a4860
1 changed files with 4 additions and 1 deletions
|
@ -9,7 +9,10 @@ mkdir -p /config/qBittorrent
|
|||
|
||||
# v4.3.3 BT_backup migration
|
||||
[[ -d /config/data/qBittorrent/BT_backup/ ]] && \
|
||||
cp -a /config/data/qBittorrent/BT_backup/. /config/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
|
||||
if [[ "$(stat -c '%U' /downloads)" != "abc" ]]; then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue