From cf5f9785a1104af842be2e79d93f0dd49b09c62d Mon Sep 17 00:00:00 2001 From: MickLesk <47820557+MickLesk@users.noreply.github.com> Date: Fri, 23 Oct 2026 10:22:06 +0200 Subject: [PATCH] InvoiceShelf: run the Laravel scheduler Without the schedule:run cron job, recurring invoices and other scheduled tasks never ran (#18072). Update adds it to existing installs. --- ct/invoiceshelf.sh | 8 ++++++++ install/invoiceshelf-install.sh | 3 +++ 2 files changed, 11 insertions(+) diff --git a/ct/invoiceshelf.sh b/ct/invoiceshelf.sh index 3d8eb13e2..77dc22658 100644 --- a/ct/invoiceshelf.sh +++ b/ct/invoiceshelf.sh @@ -31,6 +31,14 @@ function update_script() { exit fi + if [[ ! -f /etc/cron.d/invoiceshelf ]]; then + msg_info "Adding the Laravel scheduler" + cat <<'EOF' >/etc/cron.d/invoiceshelf +* * * * * www-data cd /opt/invoiceshelf && php artisan schedule:run >> /dev/null 2>&1 +EOF + msg_ok "Added the Laravel scheduler" + fi + if check_for_gh_release "invoiceshelf" "InvoiceShelf/InvoiceShelf"; then msg_info "Stopping Services" systemctl stop caddy diff --git a/install/invoiceshelf-install.sh b/install/invoiceshelf-install.sh index 206f1d18c..c60201b05 100644 --- a/install/invoiceshelf-install.sh +++ b/install/invoiceshelf-install.sh @@ -52,6 +52,9 @@ chown -R www-data:www-data /opt/invoiceshelf chmod -R 775 storage bootstrap/cache $STD php artisan migrate --force $STD php artisan storage:link +cat <<'EOF' >/etc/cron.d/invoiceshelf +* * * * * www-data cd /opt/invoiceshelf && php artisan schedule:run >> /dev/null 2>&1 +EOF msg_ok "Set up InvoiceShelf" msg_info "Configuring Caddy"