From 7153867680c49b75c7380ebaf20b8f639b998463 Mon Sep 17 00:00:00 2001 From: "Derek \"tachyon\" Reese" Date: Mon, 20 Sep 2021 20:52:53 -0700 Subject: [PATCH] Resolve ownership issues with mounted directories --- qbittorrent/start.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/qbittorrent/start.sh b/qbittorrent/start.sh index a465d73..e98d465 100644 --- a/qbittorrent/start.sh +++ b/qbittorrent/start.sh @@ -39,6 +39,12 @@ else export UMASK="002" fi +if [[ ! -e /downloads ]]; then + mkdir -p /downloads + chown -R ${PUID}:${PGID} /downloads +else + chown -R ${PUID}:${PGID} /downloads +fi # Set qBittorrent WebUI and Incoming ports if [ ! -z "${WEBUI_PORT}" ]; then