summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2010-01-05 18:31:25 -0800
committerStephen Hemminger <stephen.hemminger@vyatta.com>2010-01-05 18:31:25 -0800
commit16174dae682466753648444110e74add094adc34 (patch)
tree46b8b3349459c10bcf181108c779a0847273d65b
parentc5e6a28f5697e9448dbb343f5023709cbc2d3c8b (diff)
downloadvyatta-cfg-system-16174dae682466753648444110e74add094adc34.tar.gz
vyatta-cfg-system-16174dae682466753648444110e74add094adc34.zip
Need to be root to remove snmpd.conf
Postscript to bug 4499
-rw-r--r--templates/service/snmp/node.def2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/service/snmp/node.def b/templates/service/snmp/node.def
index 6ce9c2c7..13b39fa7 100644
--- a/templates/service/snmp/node.def
+++ b/templates/service/snmp/node.def
@@ -6,7 +6,7 @@ delete: touch /tmp/snmp.$PPID
end:if [ -f "/tmp/snmp.$PPID" ]
then sudo /opt/vyatta/sbin/vyatta-snmp.pl --stop-snmp
rm /tmp/snmp.$PPID
- rm -f /etc/snmp/snmpd.conf
+ sudo rm -f /etc/snmp/snmpd.conf
else
sudo /opt/vyatta/sbin/vyatta-snmp.pl --update-snmp
fi