mirror of
https://github.com/MarkusMcNugen/docker-qBittorrentvpn
synced 2025-12-06 10:13:21 +00:00
Update start.sh
This commit is contained in:
@@ -7,8 +7,6 @@ _handler() {
|
|||||||
chmod -R 755 /config/qBittorrent
|
chmod -R 755 /config/qBittorrent
|
||||||
}
|
}
|
||||||
|
|
||||||
trap _handler SIGINT SIGTERM SIGHUP
|
|
||||||
|
|
||||||
if [[ ! -e /config/qBittorrent ]]; then
|
if [[ ! -e /config/qBittorrent ]]; then
|
||||||
mkdir -p /config/qBittorrent/config/
|
mkdir -p /config/qBittorrent/config/
|
||||||
chown -R ${PUID}:${PGID} /config/qBittorrent
|
chown -R ${PUID}:${PGID} /config/qBittorrent
|
||||||
@@ -23,7 +21,8 @@ if [[ ! -e /config/qBittorrent/config/qBittorrent.conf ]]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
echo "[info] Starting qBittorrent daemon..." | ts '%Y-%m-%d %H:%M:%.S'
|
echo "[info] Starting qBittorrent daemon..." | ts '%Y-%m-%d %H:%M:%.S'
|
||||||
/bin/bash /etc/qbittorrent/qbittorrent.init start
|
/bin/bash /etc/qbittorrent/qbittorrent.init start &
|
||||||
|
echo "[info] Started qBittorrent daemon..." | ts '%Y-%m-%d %H:%M:%.S'
|
||||||
|
|
||||||
child=$(pgrep -o -x qbittorrent-nox)
|
child=$(pgrep -o -x qbittorrent-nox)
|
||||||
echo "[info] qbittorrent-nox PID: $child" | ts '%Y-%m-%d %H:%M:%.S'
|
echo "[info] qbittorrent-nox PID: $child" | ts '%Y-%m-%d %H:%M:%.S'
|
||||||
|
|||||||
Reference in New Issue
Block a user