From b4c9408e7335c4249b18f0bed83fea5fb0b12965 Mon Sep 17 00:00:00 2001 From: demonspork Date: Mon, 4 Mar 2024 09:05:52 -0600 Subject: [PATCH] Install Cron (#422) Debian 12 doesn't always have crontab command available --- debian/resources/finish.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/debian/resources/finish.sh b/debian/resources/finish.sh index e8d95d0..8fab3d8 100755 --- a/debian/resources/finish.sh +++ b/debian/resources/finish.sh @@ -111,6 +111,7 @@ cp /var/www/fusionpbx/app/event_guard/resources/service/debian.service /etc/syst /bin/systemctl daemon-reload #add xml cdr import to crontab +apt install cron (crontab -l; echo "* * * * * $(which php) /var/www/fusionpbx/app/xml_cdr/xml_cdr_import.php 300") | crontab #welcome message