diff --git a/glpi-start.sh b/glpi-start.sh index ce13baf..fea3a22 100644 --- a/glpi-start.sh +++ b/glpi-start.sh @@ -30,6 +30,9 @@ fi #Modification du vhost par défaut echo -e "\n\tDocumentRoot /var/www/html/glpi\n\n\t\n\t\tAllowOverride All\n\t\tOrder Allow,Deny\n\t\tAllow from all\n\t\n\n\tErrorLog /var/log/apache2/error-glpi.log\n\tLogLevel warn\n\tCustomLog /var/log/apache2/access-glpi.log combined\n" > /etc/apache2/sites-available/000-default.conf +#Add scheduled task by cron +echo "*/5 * * * * /usr/bin/php /var/www/html/glpi/front/cron.php &>/dev/null" >> /etc/cron + #Activation du module rewrite d'apache a2enmod rewrite && service apache2 restart && service apache2 stop