diff --git a/unpackerr/CHANGELOG.md b/unpackerr/CHANGELOG.md index c6a830983..969ea2f56 100644 --- a/unpackerr/CHANGELOG.md +++ b/unpackerr/CHANGELOG.md @@ -1,3 +1,4 @@ +- Removed addon options that modified the unpackerr.conf to avoid breakage. Any modifications needs to be done manually using (for example) the Filebrowser addon in /addon_configs/db21ed7f_unpackerr/unpackerr.conf. This also means you'll have to make sure the PUID/PGID specified really correspond to your actual permissions (the app doesn't allow to run as root) ## 0.12.0 (30-12-2023) - Update to latest version from Unpackerr/unpackerr diff --git a/unpackerr/README.md b/unpackerr/README.md index 248cc0f17..e1c32e34a 100644 --- a/unpackerr/README.md +++ b/unpackerr/README.md @@ -25,7 +25,7 @@ _Thanks to everyone having starred my repo! To star it click on the image below, [unpackerr](https://github.com/unpackerr/unpackerr) runs as a daemon on your download host. It checks for completed downloads and extracts them so Lidarr, Radarr, Readarr, Sonarr may import them. There are a handful of options out there for extracting and deleting files after your client downloads them. I just didn't care for any of them, so I wrote my own. I wanted a small single-binary with reasonable logging that can extract downloaded archives and clean up the mess after they've been imported. -This addon is based on the docker image https://hub.docker.com/r/golift/unpackerr +This addon is based on the docker image https://hub.docker.com/r/hotio/unpackerr ## Installation @@ -46,18 +46,7 @@ The installation of this add-on is pretty straightforward and not different in c No webui. -Create a file named "unpackerr.conf" in /config. -In /config/unpackerr.conf you can set all variables according to this list of environment variables : https://github.com/davidnewhall/unpackerr - -Folders must be customized in the conf file with the lines : - -```yaml -[[folder]] -## Windows paths must use two backslashes: "C:\\Some\\Folder\\To\\Watch" -path = "/share/downloads_packed" -## Path to extract files to. The default (leaving this blank) is the same as `path` (above). -extract_path = "/share/downloads_unpacked" -``` +In /addon_configs/db21ed7f_unpackerr/unpackerr.conf you can set all variables according to this list of environment variables : https://github.com/davidnewhall/unpackerr ## Support diff --git a/unpackerr/config.json b/unpackerr/config.json index 623a76fb6..4fd889a42 100644 --- a/unpackerr/config.json +++ b/unpackerr/config.json @@ -92,5 +92,5 @@ "slug": "unpackerr", "udev": true, "url": "https://github.com/alexbelgium/hassio-addons", - "version": "0.12.0" + "version": "0.12.0-2" } diff --git a/unpackerr/rootfs/etc/cont-init.d/01-migration.sh b/unpackerr/rootfs/etc/cont-init.d/01-migration.sh deleted file mode 100755 index 39e0736e6..000000000 --- a/unpackerr/rootfs/etc/cont-init.d/01-migration.sh +++ /dev/null @@ -1,6 +0,0 @@ -#!/usr/bin/bashio - -if [ -f /homeassistant/unpackerr.conf ]; then - bashio::log.warning "Migrating unpackerr.conf to /addons_configs/$HOSTNAME/unpackerr.conf" - mv /homeassistant/unpackerr.conf /config/unpackerr.conf -fi \ No newline at end of file diff --git a/unpackerr/rootfs/etc/cont-init.d/99-config.sh b/unpackerr/rootfs/etc/cont-init.d/99-config.sh deleted file mode 100755 index d0b6a2605..000000000 --- a/unpackerr/rootfs/etc/cont-init.d/99-config.sh +++ /dev/null @@ -1,25 +0,0 @@ -#!/usr/bin/bashio - -# 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 - -# 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. You'll need to physically enable the option in the config/unpackerr.conf file" - # Make path - mkdir -p "$(bashio::config 'watch_path')" - # Set permission - chown -R "$PUID":"$PGID" "$(bashio::config 'watch_path')" -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. You'll need to physically enable the option in the config/unpackerr.conf file" - # Make path - mkdir -p "$(bashio::config 'extraction_path')" - # Set permission - chown -R "$PUID":"$PGID" "$(bashio::config 'extraction_path')" -fi diff --git a/unpackerr/rootfs/null b/unpackerr/rootfs/null new file mode 100644 index 000000000..4d8603eb8 --- /dev/null +++ b/unpackerr/rootfs/null @@ -0,0 +1 @@ +# Just for scripts harmonization \ No newline at end of file