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:
parent
85c491fe32
commit
e909687d3e
2 changed files with 6 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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} \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue