mirror of
https://github.com/DiouxX/docker-glpi.git
synced 2026-11-08 15:52:32 -05:00
Add SNMP package
This commit is contained in:
1 parent
c160bc51b7
commit
58ff53e00b
2 files changed
+19
-6
No files matched your search
+2
-1
@@ -25,7 +25,8 @@ php-apcu-bc \
|
|||||||
php-cas \
|
php-cas \
|
||||||
cron \
|
cron \
|
||||||
wget \
|
wget \
|
||||||
jq
|
jq \
|
||||||
|
snmpd
|
||||||
|
|
||||||
#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
|
||||||
COPY glpi-start.sh /opt/
|
COPY glpi-start.sh /opt/
|
||||||
|
|||||||
+17
-5
@@ -34,13 +34,25 @@ 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 and enable
|
|
||||||
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
|
||||||
|
|
||||||
|
######################
|
||||||
|
# CRON CONFIGURATION #
|
||||||
|
######################
|
||||||
|
#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
|
||||||
|
|
||||||
|
#Start cron service
|
||||||
|
service cron start
|
||||||
|
|
||||||
|
######################
|
||||||
|
# SNMP CONFIGURATION #
|
||||||
|
######################
|
||||||
|
#Replace Listen localhot SNMP and restart service
|
||||||
|
sed -ie "s/agentAddress udp:127.0.0.1:161/agentAdrress udp:161/g" /etc/snmp/snmpd.conf
|
||||||
|
|
||||||
|
service snmpd restart
|
||||||
|
|
||||||
#Lancement du service apache au premier plan
|
#Lancement du service apache au premier plan
|
||||||
/usr/sbin/apache2ctl -D FOREGROUND
|
/usr/sbin/apache2ctl -D FOREGROUND
|
||||||
Reference in new issue
Block a user