["rosettahost|r=s"=>"host adress where Rosetta runs",{required=>1}],
["rosettahost|r=s"=>"host adress where Rosetta runs",{required=>1}],
["logdir|l=s"=>"logdir where rosetta stores it server log files",{required=>1}],
["logdir|l=s"=>"logdir where rosetta stores it server log files",{required=>1}],
["authentication|a"=>"enable authentification (needed if Rosetta's general parameter 'sru_authentication=true'), password is stored salted only in config file!",{required=>0}]
["authentication|a"=>"enable authentification (needed if Rosetta's general parameter 'sru_authentication=true'), password is stored salted only in config file!",{required=>0}]
["httponly"=>"with this flag only HTTP (instead HTTPS) is used",{required=>0}],
);
);
}
}
sub validate_args{
sub validate_args{
...
@@ -35,6 +36,7 @@ sub execute {
...
@@ -35,6 +36,7 @@ sub execute {
my%config;
my%config;
$config{host}=$opt->{rosettahost};
$config{host}=$opt->{rosettahost};
$config{logdir}=$opt->{logdir};
$config{logdir}=$opt->{logdir};
$config{httponly}=$opt->{httponly};
if(defined$opt->{authentication}){
if(defined$opt->{authentication}){
warn"HINT: The password will stored in config file!";
warn"HINT: The password will stored in config file!";