From 00cbf8d9e3feac87292630f8db4571a99b542db4 Mon Sep 17 00:00:00 2001 From: Miguel Ribeiro Date: Mon, 18 Mar 2024 23:02:18 +0100 Subject: [PATCH] fix: cronjobs running twice (#239) --- includes/version.php | 2 +- startup.sh | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/includes/version.php b/includes/version.php index 1309ce2..569ddaa 100644 --- a/includes/version.php +++ b/includes/version.php @@ -1,3 +1,3 @@ \ No newline at end of file diff --git a/startup.sh b/startup.sh index dd4135c..9d14e0d 100644 --- a/startup.sh +++ b/startup.sh @@ -25,6 +25,9 @@ chown -R www-data:www-data /var/www/html/db/ chmod -R 755 /var/www/html/images/uploads/logos chown -R www-data:www-data /var/www/html/images/uploads/logos +# Remove crontab for the user +crontab -d -u root + # Run updatenextpayment.php and wait for it to finish /usr/local/bin/php /var/www/html/endpoints/cronjobs/updatenextpayment.php