Apply chown only on files needing it

This commit is contained in:
Badintral 2022-01-03 15:43:10 +09:00 committed by GitHub
parent 0981380ec1
commit e67d7d841f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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