summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--templates/protocols/snmp/node.def16
1 files changed, 8 insertions, 8 deletions
diff --git a/templates/protocols/snmp/node.def b/templates/protocols/snmp/node.def
index ad81892c..7b0fff19 100644
--- a/templates/protocols/snmp/node.def
+++ b/templates/protocols/snmp/node.def
@@ -1,11 +1,11 @@
priority: 980
help: Configure Simple Network Management Protocol (SNMP)
commit:expression: $VAR(community/) != ""; "must configure a community"
-create:expression: "/opt/vyatta/sbin/vyatta-snmp.pl --init-snmp"
-delete:expression: "touch /tmp/snmp.$PPID"
-end:expression: "if [ -f \"/tmp/snmp.$PPID\" ]; then \
- sudo /opt/vyatta/sbin/vyatta-snmp.pl --stop-snmp \
- rm /tmp/snmp.$PPID; \
- else \
- sudo /opt/vyatta/sbin/vyatta-snmp.pl --update-snmp; \
- fi; "
+
+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
+ else
+ sudo /opt/vyatta/sbin/vyatta-snmp.pl --update-snmp
+ fi