Simplified the addon by removing any config meddling https://github.com/alexbelgium/hassio-addons/issues/1144

This commit is contained in:
Alexandre
2023-12-31 18:45:14 +01:00
parent e3d7a99f63
commit 77280f7dbe
6 changed files with 5 additions and 45 deletions

View File

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

View File

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

View File

@@ -92,5 +92,5 @@
"slug": "unpackerr",
"udev": true,
"url": "https://github.com/alexbelgium/hassio-addons",
"version": "0.12.0"
"version": "0.12.0-2"
}

View File

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

View File

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

1
unpackerr/rootfs/null Normal file
View File

@@ -0,0 +1 @@
# Just for scripts harmonization