Update 91-qbittorrent_configuration.sh

This commit is contained in:
Alexandre
2023-12-12 10:46:57 +01:00
committed by GitHub
parent ff5ec9ad97
commit 7d3f89c178

View File

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