From e5c23c40bb684d035ea32dd7911aeda24d2c341c Mon Sep 17 00:00:00 2001 From: MarkusMcNugen Date: Sat, 3 Feb 2018 22:48:30 -0500 Subject: [PATCH] Update start.sh --- qbittorrent/start.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/qbittorrent/start.sh b/qbittorrent/start.sh index a714200..56dee5e 100644 --- a/qbittorrent/start.sh +++ b/qbittorrent/start.sh @@ -7,7 +7,7 @@ _handler() { 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' chmod -R 755 /config/qBittorrent - chown -R $PUID:$PGID /config/qBittorrent + chown -R ${PUID}:${PGID} /config/qBittorrent fi } @@ -20,7 +20,7 @@ fi if [[ ! -e /config/qBittorrent/config/qBittorrent.conf ]]; then /bin/cp /etc/qbittorrent/qBittorrent.conf /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 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 if [ -e /config/qBittorrent ]; then chmod -R 755 /config/qBittorrent - chown -R $PUID:$PGID /config/qBittorrent + chown -R ${PUID}:${PGID} /config/qBittorrent break else sleep 1