From df18710161ffa3b1e17790a37eb46b862d705331 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Sat, 5 Feb 2022 19:31:26 +0100 Subject: [PATCH] Update 99-run.sh --- .../rootfs/etc/cont-init.d/99-run.sh | 51 ------------------- 1 file changed, 51 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 24ba5e9d3..5064e5559 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 @@ -59,55 +59,4 @@ fi bashio::log.info "Please wait while the app is loading !" -/./usr/local/bin/entrypoint.sh - export JSON_CONFIGURATION_DIR -fi - -################ -# CRON OPTIONS # -################ - -if bashio::config.has_value 'Updates'; then - - CONFIGSOURCE="$(dirname "${CONFIGSOURCE}/import_files")" - - if [ "$(ls -A $CONFIGSOURCE)" ]; then - # Align update with options - echo "" - FREQUENCY=$(bashio::config 'Updates') - bashio::log.info "$FREQUENCY updates" - echo "" - - # Sets cron // do not delete this message - cp /templates/cronupdate /etc/cron."${FREQUENCY}"/ - chmod 777 /etc/cron."${FREQUENCY}"/cronupdate - - # Sets cron to run with www-data user - sed -i 's|root|www-data|g' /etc/crontab - - # Starts cron - service cron start - - # Export variables - IMPORT_DIR_WHITELIST="$CONFIGSOURCE" - export IMPORT_DIR_WHITELIST - - bashio::log.info "Automatic updates were requested. The files in $CONFIGSOURCE will be imported $FREQUENCY." - - else - bashio::log.fatal "Automatic updates were requested, but there are no configuration files in $CONFIGSOURCE. There will therefore be be no automatic updates." - fi - -else - - bashio::log.info "Automatic updates not set in addon config. If you add configuration files in $CONFIGSOURCE, they won't be automatically updated." - -fi - -############## -# LAUNCH APP # -############## - -bashio::log.info "Please wait while the app is loading !" - /./usr/local/bin/entrypoint.sh