mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-30 20:34:04 +02:00
Update 99-config.sh
This commit is contained in:
@@ -1,11 +1,11 @@
|
|||||||
#!/usr/bin/bashio
|
#!/usr/bin/bashio
|
||||||
|
|
||||||
# Set user
|
# Set user
|
||||||
if bashio::config_has.value 'PUID'; then PUID = "$(bashio::config 'PUID')"; fi
|
if bashio::config.has_value 'PUID'; then PUID = "$(bashio::config 'PUID')"; fi
|
||||||
if bashio::config_has.value 'PGID'; then PGID = "$(bashio::config 'PGID')"; fi
|
if bashio::config.has_value 'PGID'; then PGID = "$(bashio::config 'PGID')"; fi
|
||||||
|
|
||||||
# Enable watch folder
|
# Enable watch folder
|
||||||
if bashio::config_has.value "watch_path"; then
|
if bashio::config.has_value "watch_path"; then
|
||||||
# Enables folders
|
# Enables folders
|
||||||
sed -i "/[[folder]]/c [[folder]]" /config/unpackerr.conf
|
sed -i "/[[folder]]/c [[folder]]" /config/unpackerr.conf
|
||||||
# Set downloads path
|
# Set downloads path
|
||||||
@@ -19,7 +19,7 @@ if bashio::config_has.value "watch_path"; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Enable extraction folder
|
# Enable extraction folder
|
||||||
if bashio::config_has.value "extraction_path"; then
|
if bashio::config.has_value "extraction_path"; then
|
||||||
# Enables folders
|
# Enables folders
|
||||||
sed -i "/[[folder]]/c [[folder]]" /config/unpackerr.conf
|
sed -i "/[[folder]]/c [[folder]]" /config/unpackerr.conf
|
||||||
# Set extraction path
|
# Set extraction path
|
||||||
|
|||||||
Reference in New Issue
Block a user