mirror of
https://github.com/DiouxX/docker-glpi.git
synced 2026-11-04 06:42:32 -05:00
Add scheduled task features by cron
This commit is contained in:
1 parent
5d78f773c3
commit
870a041ae7
1 file changed
+3
@@ -30,6 +30,9 @@ fi
|
||||
#Modification du vhost par défaut
|
||||
echo -e "<VirtualHost *:80>\n\tDocumentRoot /var/www/html/glpi\n\n\t<Directory /var/www/html/glpi>\n\t\tAllowOverride All\n\t\tOrder Allow,Deny\n\t\tAllow from all\n\t</Directory>\n\n\tErrorLog /var/log/apache2/error-glpi.log\n\tLogLevel warn\n\tCustomLog /var/log/apache2/access-glpi.log combined\n</VirtualHost>" > /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
|
||||
|
||||
|
||||
Reference in new issue
Block a user