From e3d7a99f63089fdce3f7ae311e4fe77be8b5182b Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Sun, 31 Dec 2023 18:38:01 +0100 Subject: [PATCH] Update 99-config.sh --- unpackerr/rootfs/etc/cont-init.d/99-config.sh | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/unpackerr/rootfs/etc/cont-init.d/99-config.sh b/unpackerr/rootfs/etc/cont-init.d/99-config.sh index 705ba0a97..d0b6a2605 100755 --- a/unpackerr/rootfs/etc/cont-init.d/99-config.sh +++ b/unpackerr/rootfs/etc/cont-init.d/99-config.sh @@ -3,18 +3,11 @@ # Set user if bashio::config.has_value 'PUID'; then export PUID="$(bashio::config 'PUID')"; fi if bashio::config.has_value 'PGID'; then export PGID="$(bashio::config 'PGID')"; fi -if bashio::config.has_value 'TZ'; then export TZ="$(bashio::config 'TZ')"; fi # Enable watch folder if bashio::config.has_value "watch_path"; then # Info - bashio::log.info "Watch path is $(bashio::config 'watch_path'), creating folder and setting permission" - # Enables folders - sed -i "/[[folder]]/c [[folder]]" /config/unpackerr.conf - # Set downloads path - sed -i "s|_path|_pth|g" /config/unpackerr.conf - sed -i "/path =/c path = \"$(bashio::config 'watch_path')\"" /config/unpackerr.conf - sed -i "s|_pth|_path|g" /config/unpackerr.conf + bashio::log.info "Watch path is $(bashio::config 'watch_path'), creating folder and setting permission. You'll need to physically enable the option in the config/unpackerr.conf file" # Make path mkdir -p "$(bashio::config 'watch_path')" # Set permission @@ -24,11 +17,7 @@ fi # Enable extraction folder if bashio::config.has_value "extraction_path"; then # Info - bashio::log.info "Extraction path is $(bashio::config 'extraction_path'), creating folder and setting permission" - # Enables folders - sed -i "/[[folder]]/c [[folder]]" /config/unpackerr.conf - # Set extraction path - sed -i "/extract_path =/c extract_path = \"$(bashio::config 'extraction_path')\"" /config/unpackerr.conf + bashio::log.info "Extraction path is $(bashio::config 'extraction_path'), creating folder and setting permission. You'll need to physically enable the option in the config/unpackerr.conf file" # Make path mkdir -p "$(bashio::config 'extraction_path')" # Set permission