Files
hassio-addons/fireflyiii/rootfs/templates/cronupdate
Alexandre 258cb25ae4 lint
2022-02-18 13:28:08 +01:00

15 lines
548 B
Plaintext

#!/usr/bin/env bashio
# shellcheck shell=bash
(
bashio::log.info "Running update according to defined schedule"
chown -R www-data:www-data /var/www/html/storage
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"
su -l www-data -s /bin/bash -c "/usr/local/bin/php /var/www/html/artisan firefly:cron" >/dev/null
else
su -l www-data -s /bin/bash -c "/usr/local/bin/php /var/www/html/artisan firefly:cron"
fi
) &>/proc/1/fd/1