1
0
Fork 0
mirror of https://github.com/librenms/docker.git synced 2026-01-23 10:15:22 +00:00

Use python3 for snmp-scan (Issue #25)

This commit is contained in:
CrazyMax 2019-04-07 18:08:52 +02:00
parent 85c491fe32
commit e909687d3e
No known key found for this signature in database
GPG key ID: 3248E46B6BB8C7F7
2 changed files with 6 additions and 0 deletions

View file

@ -1,5 +1,10 @@
# Changelog
## 1.50-RC3 (2019/04/06)
* Use python3 for snmp-scan (Issue #25)
* Add `REAL_IP_FROM` and `REAL_IP_HEADER` environment variables (Issue #22)
## 1.50-RC2 (2019/04/03)
* MEMORY_LIMIT not used by poller (PR #24)

View file

@ -103,6 +103,7 @@ RUN mkdir -p /opt \
&& mkdir -p /data ${LIBRENMS_PATH}/config.d /var/log/supervisord \
&& cp ${LIBRENMS_PATH}/config.php.default ${LIBRENMS_PATH}/config.php \
&& cp ${LIBRENMS_PATH}/snmpd.conf.example /etc/snmp/snmpd.conf \
&& sed -i "1s|.*|#!/usr/bin/env python3|" ${LIBRENMS_PATH}/snmp-scan.py \
&& echo "foreach (glob(\"${DATA_PATH}/config/*.php\") as \$filename) include \$filename;" >> ${LIBRENMS_PATH}/config.php \
&& echo "foreach (glob(\"${LIBRENMS_PATH}/config.d/*.php\") as \$filename) include \$filename;" >> ${LIBRENMS_PATH}/config.php \
&& chown -R librenms. ${DATA_PATH} ${LIBRENMS_PATH} \