Update glpi-install.sh

Changed cron
This commit is contained in:
Nícolas Pastorello 2025-01-03 22:03:40 -03:00 committed by GitHub
parent e5c6ae71af
commit da6ac36b02
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -127,9 +127,9 @@ a2enmod rewrite
a2ensite glpi.conf
msg_ok "Configured VirtualHost"
msg_info "Setting Cron task"
echo "*/2 * * * * www-data /usr/bin/php /opt/glpi/front/cron.php &>/dev/null" >> /etc/cron.d/glpi
msg_ok "Configured Cron task"
msg_info "Setting Automatic Actions"
(crontab -l 2>/dev/null; echo "* * * * * php /opt/glpi/front/cron.php") | crontab -
msg_ok "Configured Automatic Actions"
msg_info "Changing parameters in php.ini"
PHP_VERSION=$(ls /etc/php/ | grep -E '^[0-9]+\.[0-9]+$' | head -n 1)