Update start.sh

This commit is contained in:
MarkusMcNugen 2018-02-03 09:33:17 -05:00 committed by GitHub
parent 970f2052ba
commit bb04101847
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -20,7 +20,7 @@ fi
if [[ ! -e /config/qBittorrent/config/qBittorrent.conf ]]; then if [[ ! -e /config/qBittorrent/config/qBittorrent.conf ]]; then
yes | cp /etc/qbittorrent/qBittorrent.conf /config/qBittorrent/config/qBittorrent.conf yes | cp /etc/qbittorrent/qBittorrent.conf /config/qBittorrent/config/qBittorrent.conf
chmod 755 /config/qBittorrent/config/qBittorrent.conf chmod 755 /config/qBittorrent/config/qBittorrent.conf
chown -R 99:100 /config/qBittorrent/config/qBittorrent.conf chown -R $PUID:$PGID /config/qBittorrent/config/qBittorrent.conf
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'
@ -29,7 +29,7 @@ echo "[info] Starting qBittorrent daemon..." | ts '%Y-%m-%d %H:%M:%.S'
while true; do while true; do
if [ -e /config/qBittorrent ]; then if [ -e /config/qBittorrent ]; then
chmod -R 755 /config/qBittorrent chmod -R 755 /config/qBittorrent
chown -R 99:100 /config/qBittorrent chown -R $PUID:$PGID /config/qBittorrent
break break
else else
sleep 1 sleep 1