Had to fix a few spelling errors and update the path of one of the variables

This commit is contained in:
Tristan Ancelet 2023-11-11 15:18:30 -06:00
parent 9dc28a1cf6
commit 8d986d7a77

View File

@ -29,7 +29,7 @@ LIBRENMS_HTTPD_CONF=/etc/httpd/conf.d/librenms.conf
DEFAULT_PHP_FPM_CONF=/etc/php-fpm.d/www.conf
LIBRENMS_SNMP_CONF=$LIBRENMS_ROOT/snmpd.conf.example
SNMP_CONF=/etc/snmp/snmpd.conf
LIBRENMS_CRON=$LIBRENMS_ROOT/librenms.cron
LIBRENMS_CRON=$LIBRENMS_ROOT/dist/librenms.cron
LIBRENMS_CRON_DEST=/etc/cron.d/librenms
LIBRENMS_LOGROTATE_CONF=/opt/librenms/misc/librenms.logrotate
LIBRENMS_LOGROTATE_DEST=/etc/logrotate.d/librenms
@ -181,9 +181,9 @@ cp /opt/librenms/misc/lnms-completion.bash /etc/bash_completion.d/
## Configure SNMP
cp $LIBRENMS_SNMP_CONF $SNMP_CONF
cp -f $SNMP_CONF{,.bak}
cat $LIBRENMS_SNMP_CONF > $SNMP_CONF
### Backup
cp $SNMP_CONF{,.bak}
### Replace RANDOMSTRINGGOESHERE with SNMP_COMMUNITY
sed -i s"/RANDOMSTRINGGOESHERE/$SNMP_COMMUNITY/" $SNMP_CONF