mirror of
https://github.com/MarkusMcNugen/docker-qBittorrentvpn
synced 2024-11-26 12:35:09 +00:00
Update start.sh
This commit is contained in:
parent
953f142508
commit
657031b2de
@ -1,11 +1,10 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
#function trap_handler
|
_handler() {
|
||||||
#{
|
echo "[info] Shutdown detected... copying config file to /config/qbittorrent" | ts '%Y-%m-%d %H:%M:%.S'
|
||||||
# echo "[info] Shutdown detected... copying config file to /config/qbittorrent" | ts '%Y-%m-%d %H:%M:%.S'
|
yes | cp /root/.config/qBittorrent/qBittorrent.conf /config/qbittorrent/qBittorrent.conf
|
||||||
# yes | cp /root/.config/qBittorrent/qBittorrent.conf /config/qbittorrent/qBittorrent.conf
|
}
|
||||||
#}
|
|
||||||
|
|
||||||
# Make qbittorrent config directory
|
# Make qbittorrent config directory
|
||||||
mkdir -p /config/qbittorrent
|
mkdir -p /config/qbittorrent
|
||||||
@ -27,7 +26,10 @@ else
|
|||||||
chmod 644 /root/.config/qBittorrent/qBittorrent.conf
|
chmod 644 /root/.config/qBittorrent/qBittorrent.conf
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#trap trap_handler SIGINT SIGTERM SIGHUP
|
trap trap_handler SIGINT SIGTERM SIGHUP
|
||||||
|
|
||||||
echo "[info] Starting qBittorrent daemon..." | ts '%Y-%m-%d %H:%M:%.S'
|
echo "[info] Starting qBittorrent daemon..." | ts '%Y-%m-%d %H:%M:%.S'
|
||||||
/usr/bin/qbittorrent-nox -d
|
/usr/bin/qbittorrent-nox &
|
||||||
|
|
||||||
|
child=$(pgrep -o -x qbittorrent-nox)
|
||||||
|
wait "$child"
|
||||||
|
Loading…
Reference in New Issue
Block a user