summaryrefslogtreecommitdiffstats
path: root/perl-install/security/various.pm
blob: 2e4abd39707afbd58743ad2ecdb0f0b86329bf9e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package security::various;

use diagnostics;
use strict;

use common;

sub config_security_user {
    my $setting = @_ > 1;
    my ($prefix, $sec_user) = @_;
    if ($setting) {
	addVarsInSh("$prefix/etc/security/msec/security.conf", { MAIL_USER => $sec_user });
    } else {
	my %t = getVarsFromSh("$prefix/etc/security/msec/security.conf");
	$t{MAIL_USER};
    }
}

1;