Update start.sh

This commit is contained in:
MarkusMcNugen 2018-02-03 09:22:26 -05:00 committed by GitHub
parent c96af223db
commit edf57edc2b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -12,6 +12,13 @@ _handler() {
} }
trap _handler SIGINT SIGTERM SIGHUP trap _handler SIGINT SIGTERM SIGHUP
if [[ ! -e /config/qBittorrent/config/qBittorrent.conf ]]; then
yes | cp /etc/qbittorrent/qBittorrent.conf /config/qBittorrent/config/qBittorrent.conf
chmod 755 /config/qBittorrent/config/qBittorrent.conf
chown -R 99:100 /config/qBittorrent/config/qBittorrent.conf
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'
/usr/bin/qbittorrent-nox --profile=/config & /usr/bin/qbittorrent-nox --profile=/config &