Update 99-config.sh

This commit is contained in:
Alexandre
2022-10-09 10:56:49 +02:00
committed by GitHub
parent 60efccd1c7
commit 12b5ae3470

View File

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