summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2008-10-27 16:19:08 -0700
committerStephen Hemminger <stephen.hemminger@vyatta.com>2008-10-27 16:19:08 -0700
commit3537c028bc63e18568e70dfd3c1634d857918bc2 (patch)
tree13f5c9cd6adb7f51c467610735f7e0fb347d7259
parent0f62025ad48e9a50299dea4cbce8640b1fc973d6 (diff)
parent6bf9995ed54f023e4147c6011de6a1d5191e766d (diff)
downloadvyatta-cfg-quagga-3537c028bc63e18568e70dfd3c1634d857918bc2.tar.gz
vyatta-cfg-quagga-3537c028bc63e18568e70dfd3c1634d857918bc2.zip
Merge branch 'islavista' of suva.vyatta.com:/git/vyatta-cfg-system into islavista
-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;