Update 20-configuration.sh

This commit is contained in:
Alexandre
2022-02-07 10:17:12 +01:00
committed by GitHub
parent 940828871e
commit aa7c9b43dc

View File

@@ -20,10 +20,9 @@ chown -R "$PUID":"$GUID" /config/addons_config/plex-meta-manager
# Where is the config
CONFIGSOURCE=$(bashio::config "PMM_CONFIG")
CONFIGSOURCE=$(dirname "$CONFIGSOURCE")
# Check if config file is there, or create one from template
if [ -f "$CONFIGSOURCE"/config.yml ]; then
if [ -f "$CONFIGSOURCE" ]; then
bashio::log.info "Using config file found in $CONFIGSOURCE"
else
cp /templates/config.yml "$(dirname "${CONFIGSOURCE}")"