Update cronupdate

This commit is contained in:
Alexandre
2022-02-14 17:42:55 +01:00
committed by GitHub
parent c5ff96e9b5
commit c10bdbf190

View File

@@ -7,8 +7,8 @@ PATHTOFILES="$(dirname "${PATHTOFILES}")"
bashio::log.info "Running update according to defined schedule. Files located in $PATHTOFILES will be imported"
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 >/dev/null
su -l www-data -s /bin/bash -c "/usr/local/bin/php /var/www/html/artisan importer:auto-import >/dev/null"
else
/usr/local/bin/php /var/www/html/artisan importer:auto-import "$PATHTOFILES"/import_files
su -l www-data -s /bin/bash -c "/usr/local/bin/php /var/www/html/artisan importer:auto-import $PATHTOFILES/import_files"
fi
) &>/proc/1/fd/1