diff options
Diffstat (limited to 'templates/protocols/snmp')
-rw-r--r-- | templates/protocols/snmp/node.def | 6 |
1 files changed, 3 insertions, 3 deletions
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; " |