undoing webusers-improvement (not working)
This commit is contained in:
parent
07dec3420e
commit
16fc7ae400
1 changed files with 3 additions and 17 deletions
|
@ -690,24 +690,10 @@ sub create_list {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&set_webusers_permission;
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
# ------------------------------------------------------------------------
|
|
||||||
|
|
||||||
sub set_webusers_permission {
|
|
||||||
|
|
||||||
# Handle authentication stuff
|
# Handle authentication stuff
|
||||||
my ($contents, $old_contents);
|
|
||||||
if ($Q::webusers) {
|
if ($Q::webusers) {
|
||||||
# remove old line
|
open(WEBUSER, ">>$LIST_DIR/webusers") || die "Unable to open webusers: $!";
|
||||||
open(WEBUSER, ">$LIST_DIR/webusers") || die "Unable to open webusers: $!";
|
print WEBUSER "$Q::list: $Q::webusers\n";
|
||||||
@old_contents = <WEBUSERS>;
|
|
||||||
@contents = (grep { ! /^$Q::list:/ } @old_contents);
|
|
||||||
push(@contents,"$Q::list: $Q::webusers\n");
|
|
||||||
print WEBUSER (@contents);
|
|
||||||
close WEBUSER;
|
close WEBUSER;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue