Update glpi-start.sh

When the container starts, this command append the line every time. After 13 months of daily container restarts (because of bareos backup), whe have /etc/cron.d/glpi with more than 500+ line of similar crons. This make a critical CPU utilize on server. After changes all works fine.
This commit is contained in:
vladkvl13 authored and GitHub committed 2023-07-20 08:31:31 +03:00
1 parent e4d30f8337
commit 1051a4f1cf
1 file changed
+1 -1
+1 -1
View File
@@ -55,7 +55,7 @@ else
fi
#Add scheduled task by cron and enable
echo "*/2 * * * * www-data /usr/bin/php /var/www/html/glpi/front/cron.php &>/dev/null" >> /etc/cron.d/glpi
echo "*/2 * * * * www-data /usr/bin/php /var/www/html/glpi/front/cron.php &>/dev/null" > /etc/cron.d/glpi
#Start cron service
service cron start