mirror of
https://github.com/linuxserver/docker-qbittorrent.git
synced 2025-06-28 01:12:24 -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
|
@ -5,15 +5,22 @@ mkdir -p /config/qBittorrent
|
||||||
|
|
||||||
# copy config
|
# copy config
|
||||||
[[ ! -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
|
||||||
chown -R abc:abc /downloads
|
chown -R abc:abc /downloads
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# permissions
|
# permissions
|
||||||
chown -R abc:abc \
|
chown -R abc:abc \
|
||||||
/config
|
/config
|
||||||
|
|
|
@ -3,4 +3,4 @@
|
||||||
WEBUI_PORT=${WEBUI_PORT:-8080}
|
WEBUI_PORT=${WEBUI_PORT:-8080}
|
||||||
|
|
||||||
exec \
|
exec \
|
||||||
s6-setuidgid abc /usr/bin/qbittorrent-nox --webui-port="${WEBUI_PORT}"
|
s6-setuidgid abc /usr/bin/qbittorrent-nox --webui-port="${WEBUI_PORT}"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue