mirror of
https://github.com/linuxserver/docker-qbittorrent.git
synced 2025-06-28 09:18:23 -04:00
Make init more consistent with s6v3 standard
This commit is contained in:
parent
60df08ba86
commit
d97b2e7d4a
9 changed files with 4 additions and 3 deletions
|
@ -4,8 +4,9 @@
|
||||||
mkdir -p /config/qBittorrent
|
mkdir -p /config/qBittorrent
|
||||||
|
|
||||||
# copy default config
|
# copy default config
|
||||||
[[ ! -e /config/qBittorrent/qBittorrent.conf ]] && \
|
if [[ ! -f /config/qBittorrent/qBittorrent.conf ]]; then
|
||||||
cp /defaults/qBittorrent.conf /config/qBittorrent/qBittorrent.conf
|
cp /defaults/qBittorrent.conf /config/qBittorrent/qBittorrent.conf
|
||||||
|
fi
|
||||||
|
|
||||||
# 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
|
1
root/etc/s6-overlay/s6-rc.d/init-qbittorrent-config/up
Normal file
1
root/etc/s6-overlay/s6-rc.d/init-qbittorrent-config/up
Normal file
|
@ -0,0 +1 @@
|
||||||
|
/etc/s6-overlay/s6-rc.d/init-qbittorrent-config/run
|
|
@ -1 +0,0 @@
|
||||||
/etc/s6-overlay/s6-rc.d/init-qbittorrent/run
|
|
|
@ -3,5 +3,5 @@
|
||||||
WEBUI_PORT=${WEBUI_PORT:-8080}
|
WEBUI_PORT=${WEBUI_PORT:-8080}
|
||||||
|
|
||||||
exec \
|
exec \
|
||||||
s6-notifyoncheck -d -n 300 -w 1000 -c "nc -z 127.0.0.1 ${WEBUI_PORT}" \
|
s6-notifyoncheck -d -n 300 -w 1000 -c "nc -z localhost ${WEBUI_PORT}" \
|
||||||
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