Skip to content

Commit

Permalink
Update cronupdate
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbelgium authored Mar 28, 2024
1 parent cda9935 commit c5243e1
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions fireflyiii_data_importer/rootfs/templates/cronupdate
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,12 @@
# shellcheck shell=bash
set -e

PATHTOFILES="$(bashio::config "CONFIG_LOCATION")"
PATHTOFILES="$(dirname "${PATHTOFILES}")"

(
bashio::log.info "Running update according to defined schedule. Files located in $PATHTOFILES will be imported"
bashio::log.info "Running update according to defined schedule. Files located in /config/import_files will be imported ; accessible in the folder /addon_configs/xxx-firefly_data_importer when using the Filebrowser addon"
if bashio::config.true 'silent'; then
bashio::log.warning "Silent mode activated. Only errors will be shown. Please disable in addon options if you need to debug"
/usr/local/bin/php /var/www/html/artisan importer:auto-import "$PATHTOFILES/import_files" >/dev/null
/usr/local/bin/php /var/www/html/artisan importer:auto-import /config/import_files/import_files >/dev/null
else
/usr/local/bin/php /var/www/html/artisan importer:auto-import "$PATHTOFILES/import_files"
/usr/local/bin/php /var/www/html/artisan importer:auto-import /config/import_files/import_files
fi
) &>/proc/1/fd/1

0 comments on commit c5243e1

Please sign in to comment.