X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=rt3%2Fadduserstort.pl;fp=rt3%2Fadduserstort.pl;h=91ff80173b10a801e18513a0218cd84b569b0388;hb=3e5e0976e8bdc7b1cb4f7cde8da67641fbcec015;hp=899e4ce97981d818428e6a6a4f3b8dcdadf5a5b2;hpb=253cb4577377c8b56dd5d6670f8cbff004cc8c3d;p=monitor.git diff --git a/rt3/adduserstort.pl b/rt3/adduserstort.pl index 899e4ce..91ff801 100644 --- a/rt3/adduserstort.pl +++ b/rt3/adduserstort.pl @@ -25,8 +25,13 @@ my $organization = ''; my $address1 = ''; my $city = ''; my $country = ''; +my $priv = 0; -print $ARGV[0]; +if ( $ARGV[0] == 'priv' ) +{ + shift @ARGV; + $priv = 1; +} open(USERS_DATA, $ARGV[0]) || die("Could not open file!"); @raw_data=; @@ -42,8 +47,8 @@ foreach $bc_user (@raw_data) RealName => $realname, EmailAddress => $email_address, Password => 'Passw0rd', - Organization => $organization, - Privileged => 0); + Organization => $organization, + Privileged => $priv); #Address1 => $address1, #City => $city, #Country => country,