v4.3.3 upgrade path

This commit is contained in:
Alexandre Pinon 2021-01-25 23:58:51 +01:00 committed by GitHub
parent a82199f478
commit 9a267928a3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -7,6 +7,10 @@ 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/ ]] && \
cp -a /config/data/qBittorrent/BT_backup/. /config/qBittorrent/BT_backup/
# chown download directory if currently not set to abc # chown download directory if currently not set to abc
if [[ "$(stat -c '%U' /downloads)" != "abc" ]]; then if [[ "$(stat -c '%U' /downloads)" != "abc" ]]; then
chown -R abc:abc /downloads chown -R abc:abc /downloads