Commit 0bbb43ce authored by Jonathon Duerig's avatar Jonathon Duerig

Don't repeat user adds on success

parent 14e30daa
......@@ -940,8 +940,8 @@ sub os_etchosts_line($$$)
sub os_groupadd($$)
{
my $tries = 3;
my $result;
while ($tries > 0) {
my $result = 1;
while ($result && $tries > 0) {
$result = os_groupadd_real(@_);
if ($result) {
sleep(5);
......@@ -1022,8 +1022,8 @@ sub os_modpasswd($$)
sub os_useradd($$$$$$$$$)
{
my $tries = 3;
my $result;
while ($tries > 0) {
my $result = 1;
while ($result && $tries > 0) {
$result = os_useradd_real(@_);
if ($result) {
sleep(5);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment