mirror of
https://github.com/DiouxX/docker-glpi.git
synced 2026-11-07 07:22:33 -05:00
Cron feature Fix
This commit is contained in:
1 parent
870a041ae7
commit
e8a579131f
2 files changed
+6
-2
No files matched your search
@@ -8,6 +8,7 @@ ENV DEBIAN_FRONTEND noninteractive
|
|||||||
|
|
||||||
#Installation d'apache et de php5 avec extension
|
#Installation d'apache et de php5 avec extension
|
||||||
RUN apt update \
|
RUN apt update \
|
||||||
|
&& apt -y upgrade \
|
||||||
&& apt -y install \
|
&& apt -y install \
|
||||||
apache2 \
|
apache2 \
|
||||||
php \
|
php \
|
||||||
@@ -21,6 +22,7 @@ php-gd \
|
|||||||
php-mbstring \
|
php-mbstring \
|
||||||
php-xml \
|
php-xml \
|
||||||
php-apcu-bc \
|
php-apcu-bc \
|
||||||
|
cron \
|
||||||
wget
|
wget
|
||||||
|
|
||||||
#Copie et execution du script pour l'installation et l'initialisation de GLPI
|
#Copie et execution du script pour l'installation et l'initialisation de GLPI
|
||||||
|
|||||||
+4
-2
@@ -30,8 +30,10 @@ fi
|
|||||||
#Modification du vhost par défaut
|
#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
|
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
|
#Add scheduled task by cron and enable
|
||||||
echo "*/5 * * * * /usr/bin/php /var/www/html/glpi/front/cron.php &>/dev/null" >> /etc/cron
|
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
|
||||||
|
|
||||||
#Activation du module rewrite d'apache
|
#Activation du module rewrite d'apache
|
||||||
a2enmod rewrite && service apache2 restart && service apache2 stop
|
a2enmod rewrite && service apache2 restart && service apache2 stop
|
||||||
|
|||||||
Reference in new issue
Block a user