mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-02-03 18:37:42 +01:00
14 lines
680 B
Plaintext
14 lines
680 B
Plaintext
#!/usr/bin/env bashio
|
|
# shellcheck shell=bash
|
|
set -e
|
|
|
|
(
|
|
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 /config/import_files/import_files >/dev/null
|
|
else
|
|
/usr/local/bin/php /var/www/html/artisan importer:auto-import /config/import_files/import_files
|
|
fi
|
|
) &>/proc/1/fd/1
|