From 4b2839e540cfa84fbdb6715f181f7d65954f9f16 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Fri, 1 Apr 2022 09:20:12 +0200 Subject: [PATCH] Update 99-run.sh --- fireflyiii_data_importer/rootfs/etc/cont-init.d/99-run.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fireflyiii_data_importer/rootfs/etc/cont-init.d/99-run.sh b/fireflyiii_data_importer/rootfs/etc/cont-init.d/99-run.sh index be13b8086..04f98a36c 100644 --- a/fireflyiii_data_importer/rootfs/etc/cont-init.d/99-run.sh +++ b/fireflyiii_data_importer/rootfs/etc/cont-init.d/99-run.sh @@ -20,7 +20,6 @@ fi if bashio::config.has_value 'Updates'; then - if [ "$(ls -A "${CONFIGSOURCE}"/import_files)" ]; then # Align update with options echo "" FREQUENCY=$(bashio::config 'Updates') @@ -43,8 +42,9 @@ if bashio::config.has_value 'Updates'; then bashio::log.info "Automatic updates were requested. The files in ${CONFIGSOURCE}/import_files will be imported $FREQUENCY." - else + if [ ! "$(ls -A "${CONFIGSOURCE}"/import_files)" ]; then bashio::log.fatal "Automatic updates were requested, but there are no configuration files in ${CONFIGSOURCE}/import_files. There will therefore be be no automatic updates." + true fi else