mirror of
https://github.com/MarkusMcNugen/docker-qBittorrentvpn
synced 2024-11-14 22:55:11 +00:00
Update start.sh
This commit is contained in:
parent
3d2c7a650a
commit
e5c23c40bb
@ -7,7 +7,7 @@ _handler() {
|
|||||||
if [[ -e /config/qBittorrent ]]; then
|
if [[ -e /config/qBittorrent ]]; then
|
||||||
echo "[info] qBittorrent directory exists in /config, applying ownership and permissions before exit" | ts '%Y-%m-%d %H:%M:%.S'
|
echo "[info] qBittorrent directory exists in /config, applying ownership and permissions before exit" | ts '%Y-%m-%d %H:%M:%.S'
|
||||||
chmod -R 755 /config/qBittorrent
|
chmod -R 755 /config/qBittorrent
|
||||||
chown -R $PUID:$PGID /config/qBittorrent
|
chown -R ${PUID}:${PGID} /config/qBittorrent
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -20,7 +20,7 @@ fi
|
|||||||
if [[ ! -e /config/qBittorrent/config/qBittorrent.conf ]]; then
|
if [[ ! -e /config/qBittorrent/config/qBittorrent.conf ]]; then
|
||||||
/bin/cp /etc/qbittorrent/qBittorrent.conf /config/qBittorrent/config/qBittorrent.conf
|
/bin/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 $PUID:$PGID /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 $PUID:$PGID /config/qBittorrent
|
chown -R ${PUID}:${PGID} /config/qBittorrent
|
||||||
break
|
break
|
||||||
else
|
else
|
||||||
sleep 1
|
sleep 1
|
||||||
|
Loading…
Reference in New Issue
Block a user