From 7d3f89c178d9f386d5d3c6da66266c63017dcf0f Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Tue, 12 Dec 2023 10:46:57 +0100 Subject: [PATCH] Update 91-qbittorrent_configuration.sh --- .../rootfs/etc/cont-init.d/91-qbittorrent_configuration.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/qbittorrent/rootfs/etc/cont-init.d/91-qbittorrent_configuration.sh b/qbittorrent/rootfs/etc/cont-init.d/91-qbittorrent_configuration.sh index 520df83e7..b1f255b35 100755 --- a/qbittorrent/rootfs/etc/cont-init.d/91-qbittorrent_configuration.sh +++ b/qbittorrent/rootfs/etc/cont-init.d/91-qbittorrent_configuration.sh @@ -57,7 +57,9 @@ if bashio::config.has_value 'SavePath'; then fi # Create default location -mkdir -p "$DOWNLOADS" || bashio::log.fatal "Error : folder defined in SavePath doesn't exist and can't be created. Check path" +if [ ! -d "$DOWNLOADS" ]; then + mkdir -p "$DOWNLOADS" || bashio::log.fatal "Error : folder defined in SavePath doesn't exist and can't be created. Check path" +fi chown -R "$PUID:$PGID" "$DOWNLOADS" || bashio::log.fatal "Error, please check default save folder configuration in addon" ##############