diff options
author | Stig Thormodsrud <stig@uffda.(none)> | 2007-10-31 18:49:53 -0700 |
---|---|---|
committer | Stig Thormodsrud <stig@uffda.(none)> | 2007-10-31 18:49:53 -0700 |
commit | e992ddd83ab2002ea6aeb9a4cacf89f9a888c17b (patch) | |
tree | 52c88c9141e41847a515dd3f9e12634d02d423e8 /templates/protocols | |
parent | 290a17f504293f80b54bb8960293e6bc0cfacb19 (diff) | |
download | vyatta-cfg-quagga-e992ddd83ab2002ea6aeb9a4cacf89f9a888c17b.tar.gz vyatta-cfg-quagga-e992ddd83ab2002ea6aeb9a4cacf89f9a888c17b.zip |
Fix snmp such that it can be configured by non-root user.
Diffstat (limited to 'templates/protocols')
-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; " |