mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-05 08:34:56 +02:00
Simplified the addon by removing any config meddling https://github.com/alexbelgium/hassio-addons/issues/1144
This commit is contained in:
@@ -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
|
||||
@@ -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
1
unpackerr/rootfs/null
Normal file
@@ -0,0 +1 @@
|
||||
# Just for scripts harmonization
|
||||
Reference in New Issue
Block a user