From 7e5302b5e6de4e341ffafcdc1f97942b5ed07359 Mon Sep 17 00:00:00 2001 From: ReachableCEO Date: Wed, 2 Jul 2025 21:20:47 -0500 Subject: [PATCH] This allows for chattr +i of snmpd.conf on hosts we don't want to put the standard snmpd.conf on --- ProjectCode/SetupNewSystem.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ProjectCode/SetupNewSystem.sh b/ProjectCode/SetupNewSystem.sh index d5aea31..5c1907a 100644 --- a/ProjectCode/SetupNewSystem.sh +++ b/ProjectCode/SetupNewSystem.sh @@ -235,15 +235,15 @@ function global-postPackageConfiguration() { pi-detect if [ "$IS_RASPI" = 1 ]; then - cat ./ConfigFiles/SNMP/snmpd-rpi.conf >/etc/snmp/snmpd.conf + cat ./ConfigFiles/SNMP/snmpd-rpi.conf >/etc/snmp/snmpd.conf || true fi if [ "$IS_PHYSICAL_HOST" = 1 ]; then - cat ./ConfigFiles/SNMP/snmpd-physicalhost.conf >/etc/snmp/snmpd.conf + cat ./ConfigFiles/SNMP/snmpd-physicalhost.conf >/etc/snmp/snmpd.conf || true fi if [ "$IS_VIRT_GUEST" = 1 ]; then - cat ./ConfigFiles/SNMP/snmpd.conf >/etc/snmp/snmpd.conf + cat ./ConfigFiles/SNMP/snmpd.conf >/etc/snmp/snmpd.conf || true fi systemctl daemon-reload && systemctl restart snmpd && /etc/init.d/snmpd restart