mirror of
https://github.com/MarkusMcNugen/docker-qBittorrentvpn
synced 2024-11-22 18:45:25 +00:00
Update start.sh
This commit is contained in:
parent
a85d21bad0
commit
8a7ae4409e
@ -1,10 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
handler() {
|
|
||||||
echo "[warn] Shutdown detected..." | ts '%Y-%m-%d %H:%M:%.S'
|
|
||||||
}
|
|
||||||
|
|
||||||
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
|
||||||
@ -19,7 +15,7 @@ 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
|
||||||
chmod -R 755 /config/qBittorrent
|
chmod -R 755 /config/qBittorrent
|
||||||
|
|
||||||
sleep 1
|
sleep 1
|
||||||
|
Loading…
Reference in New Issue
Block a user