summaryrefslogtreecommitdiff
path: root/scripts/snmp/vyatta-snmp.pl
diff options
context:
space:
mode:
authorBob Gilligan <gilligan@vyatta.com>2008-10-29 16:46:58 -0700
committerBob Gilligan <gilligan@vyatta.com>2008-10-29 16:46:58 -0700
commit81bd193daacbf4b1f3ee74fe940151ac90174870 (patch)
treec01784e8b4ffde58803ed3cc7d0c9ab80876bd8e /scripts/snmp/vyatta-snmp.pl
parentfea9248fdbe724e7e44b65e298a3f3290ba1b767 (diff)
parent21b96894a7ad4e44838312668429cc5c670ee55b (diff)
downloadvyatta-cfg-quagga-81bd193daacbf4b1f3ee74fe940151ac90174870.tar.gz
vyatta-cfg-quagga-81bd193daacbf4b1f3ee74fe940151ac90174870.zip
Merge branch 'islavista' of http://git.vyatta.com/vyatta-cfg-system into islavista
Diffstat (limited to 'scripts/snmp/vyatta-snmp.pl')
-rw-r--r--scripts/snmp/vyatta-snmp.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/snmp/vyatta-snmp.pl b/scripts/snmp/vyatta-snmp.pl
index 6de63fb0..58dc374f 100644
--- a/scripts/snmp/vyatta-snmp.pl
+++ b/scripts/snmp/vyatta-snmp.pl
@@ -163,7 +163,7 @@ sub snmp_write_snmpv3_user {
my $vyatta_user = shift;
my $user = "rouser $vyatta_user\n";
- system ("sed -i '/user[[:space:]]*vyatta[[:alnum:]]*/d' $snmp_snmpv3_user_conf;");
+ system ("sed -i '/user[[:space:]]*vyatta[[:alnum:]]*/d' $snmp_snmpv3_user_conf 2>/dev/null;");
open(my $fh, '>>', $snmp_snmpv3_user_conf) || die "Couldn't open $snmp_snmpv3_user_conf - $!";
print $fh $user;
close $fh;