From e992ddd83ab2002ea6aeb9a4cacf89f9a888c17b Mon Sep 17 00:00:00 2001
From: Stig Thormodsrud <stig@uffda.(none)>
Date: Wed, 31 Oct 2007 18:49:53 -0700
Subject: Fix snmp such that it can be configured by non-root user.

---
 templates/protocols/snmp/node.def | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

(limited to 'templates/protocols/snmp/node.def')

diff --git a/templates/protocols/snmp/node.def b/templates/protocols/snmp/node.def
index 269b64ed..4c35e2b0 100644
--- a/templates/protocols/snmp/node.def
+++ b/templates/protocols/snmp/node.def
@@ -2,8 +2,8 @@ help: "Configure SNMP"
 create: "/opt/vyatta/sbin/vyatta-snmp.pl --init-snmp"
 delete: "touch /tmp/snmp.\\$PPID"
 end: "if [ -f \"/tmp/snmp.\\$PPID\" ]; then \
-        /opt/vyatta/sbin/vyatta-snmp.pl --stop-snmp \
-        rm -rf /tmp/snmp.\\$PPID; \
+        sudo /opt/vyatta/sbin/vyatta-snmp.pl --stop-snmp \
+        rm /tmp/snmp.\\$PPID; \
       else \
-        /opt/vyatta/sbin/vyatta-snmp.pl --update-snmp; \
+        sudo /opt/vyatta/sbin/vyatta-snmp.pl --update-snmp; \
       fi; "
-- 
cgit v1.2.3

