From e67d7d841fe532993903e27d0449fb6cc2a1f3a6 Mon Sep 17 00:00:00 2001 From: Badintral <79549469+Badintral@users.noreply.github.com> Date: Mon, 3 Jan 2022 15:43:10 +0900 Subject: [PATCH] Apply chown only on files needing it --- qbittorrent/start.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qbittorrent/start.sh b/qbittorrent/start.sh index 453abc4..c5510ac 100644 --- a/qbittorrent/start.sh +++ b/qbittorrent/start.sh @@ -7,7 +7,7 @@ fi chown -R ${PUID}:${PGID} /config/qBittorrent # Set the rights on the /downloads folder -chown -R ${PUID}:${PGID} /downloads +find /downloads -not -user ${PUID} -execdir chown ${PUID}:${PGID} {} \+ # Check if qBittorrent.conf exists, if not, copy the template over if [ ! -e /config/qBittorrent/config/qBittorrent.conf ]; then