mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-17 21:09:13 +02:00
Update 20-configuration.sh
This commit is contained in:
@@ -20,9 +20,10 @@ chown -R "$PUID":"$GUID" /config/addons_config/plex-meta-manager
|
|||||||
|
|
||||||
# Where is the config
|
# Where is the config
|
||||||
CONFIGSOURCE=$(bashio::config "PMM_CONFIG")
|
CONFIGSOURCE=$(bashio::config "PMM_CONFIG")
|
||||||
|
CONFIGSOURCE=$(dirname "$CONFIGSOURCE")
|
||||||
|
|
||||||
# Check if config file is there, or create one from template
|
# Check if config file is there, or create one from template
|
||||||
if [ -f $CONFIGSOURCE/config.yml ]; then
|
if [ -f "$CONFIGSOURCE"/config.yml ]; then
|
||||||
bashio::log.info "Using config file found in $CONFIGSOURCE"
|
bashio::log.info "Using config file found in $CONFIGSOURCE"
|
||||||
else
|
else
|
||||||
cp /templates/config.yml "$(dirname "${CONFIGSOURCE}")"
|
cp /templates/config.yml "$(dirname "${CONFIGSOURCE}")"
|
||||||
|
|||||||
Reference in New Issue
Block a user