From 6a773cbc4d08937c8f002e792ba32703f30865b5 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Mon, 7 Feb 2022 10:08:15 +0100 Subject: [PATCH] Update 20-configuration.sh --- .../rootfs/etc/cont-init.d/20-configuration.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/plex_meta_manager/rootfs/etc/cont-init.d/20-configuration.sh b/plex_meta_manager/rootfs/etc/cont-init.d/20-configuration.sh index fe1e0c221..6c3b3ac9b 100644 --- a/plex_meta_manager/rootfs/etc/cont-init.d/20-configuration.sh +++ b/plex_meta_manager/rootfs/etc/cont-init.d/20-configuration.sh @@ -23,8 +23,10 @@ CONFIGSOURCE=$(bashio::config "HOME") # Check if config file is there, or create one from template if [ -f $CONFIGSOURCE/config.yml ]; then - echo "Using config file found in $CONFIGSOURCE" + bashio::log.info "Using config file found in $CONFIGSOURCE" else - echo "No config file, creating one from template" cp /templates/config.yml "$(dirname "${CONFIGSOURCE}")" + bashio::log.warning "No config file, creating one from template. Please correct the config.yml file before restarting the addon !" + sleep 10 + bashio::addon.stop fi