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