diff options
author | Rick Balocca <rbalocca@vyatta.com> | 2008-10-28 11:48:24 -0700 |
---|---|---|
committer | Rick Balocca <rbalocca@vyatta.com> | 2008-10-28 11:48:24 -0700 |
commit | 841e41f385ca960fb703ff612b014d7e57560b3e (patch) | |
tree | 1c85e6040bbce551469aaa5461bcc2c58ba32da6 /scripts/snmp | |
parent | 056c3079a791a246907a442e35063f42af5b3a99 (diff) | |
parent | 3537c028bc63e18568e70dfd3c1634d857918bc2 (diff) | |
download | vyatta-cfg-system-841e41f385ca960fb703ff612b014d7e57560b3e.tar.gz vyatta-cfg-system-841e41f385ca960fb703ff612b014d7e57560b3e.zip |
Merge branch 'islavista' into jenner
Conflicts:
scripts/install-system
scripts/standalone_root_pw_reset
Diffstat (limited to 'scripts/snmp')
-rw-r--r-- | scripts/snmp/vyatta-snmp.pl | 2 |
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; |