mirror of
https://github.com/linuxserver/docker-qbittorrent.git
synced 2025-06-27 17:00:42 -04:00
v3ify qbittorrent image (#184)
This commit is contained in:
parent
97d4b22608
commit
a8abbc12e2
20 changed files with 21 additions and 24 deletions
9
root/etc/cont-init.d/30-config → root/etc/s6-overlay/s6-rc.d/init-qbittorrent/run
Normal file → Executable file
9
root/etc/cont-init.d/30-config → root/etc/s6-overlay/s6-rc.d/init-qbittorrent/run
Normal file → Executable file
|
@ -3,17 +3,10 @@
|
|||
# make our folder
|
||||
mkdir -p /config/qBittorrent
|
||||
|
||||
# copy config
|
||||
# copy default config
|
||||
[[ ! -e /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
|
||||
if [[ -d /downloads ]]; then
|
||||
if [[ "$(stat -c '%U' /downloads)" != "abc" ]]; then
|
1
root/etc/s6-overlay/s6-rc.d/init-qbittorrent/type
Normal file
1
root/etc/s6-overlay/s6-rc.d/init-qbittorrent/type
Normal file
|
@ -0,0 +1 @@
|
|||
oneshot
|
1
root/etc/s6-overlay/s6-rc.d/init-qbittorrent/up
Normal file
1
root/etc/s6-overlay/s6-rc.d/init-qbittorrent/up
Normal file
|
@ -0,0 +1 @@
|
|||
/etc/s6-overlay/s6-rc.d/init-qbittorrent/run
|
|
@ -0,0 +1 @@
|
|||
3
|
2
root/etc/services.d/qbittorrent/run → root/etc/s6-overlay/s6-rc.d/svc-qbittorrent/run
Normal file → Executable file
2
root/etc/services.d/qbittorrent/run → root/etc/s6-overlay/s6-rc.d/svc-qbittorrent/run
Normal file → Executable file
|
@ -2,5 +2,5 @@
|
|||
|
||||
WEBUI_PORT=${WEBUI_PORT:-8080}
|
||||
|
||||
exec \
|
||||
s6-notifyoncheck -d -n 12 -c "nc -z 127.0.0.1 ${WEBUI_PORT}" \
|
||||
s6-setuidgid abc /usr/bin/qbittorrent-nox --webui-port="${WEBUI_PORT}"
|
1
root/etc/s6-overlay/s6-rc.d/svc-qbittorrent/type
Normal file
1
root/etc/s6-overlay/s6-rc.d/svc-qbittorrent/type
Normal file
|
@ -0,0 +1 @@
|
|||
longrun
|
Loading…
Add table
Add a link
Reference in a new issue