Update start.sh

This commit is contained in:
MarkusMcNugen 2018-02-04 21:01:40 -05:00 committed by GitHub
parent a85d21bad0
commit 8a7ae4409e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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