From 16174dae682466753648444110e74add094adc34 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Tue, 5 Jan 2010 18:31:25 -0800 Subject: Need to be root to remove snmpd.conf Postscript to bug 4499 --- templates/service/snmp/node.def | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'templates/service/snmp') 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 -- cgit v1.2.3