sub Access.
This commit is contained in:
parent
6a8c716da3
commit
be194d7f75
|
@ -13,17 +13,7 @@ use Evoauth::Iptables;
|
|||
|
||||
$SIG{INT} = $SIG{TERM} = $SIG{KILL} = "";
|
||||
|
||||
my $Config = Config::Tiny->read( '/etc/evoauth/evoauth.conf' );
|
||||
if ($Config->{control}->{enable} != 1) {
|
||||
print <<AVERT;
|
||||
|
||||
Avertissement Evoauth
|
||||
---------------------
|
||||
enable doit etre egal a 1 dans /etc/evoauth/evoauth.conf avant
|
||||
de continuer".
|
||||
AVERT
|
||||
exit;
|
||||
}
|
||||
&Access();
|
||||
|
||||
# choix des options
|
||||
my %options=();
|
||||
|
@ -44,6 +34,21 @@ elsif (defined $options{r})
|
|||
else
|
||||
{ &Usage; }
|
||||
|
||||
sub Access() {
|
||||
my $Config = Config::Tiny->read( '/etc/evoauth/evoauth.conf' );
|
||||
|
||||
if ($Config->{control}->{enable} != 1) {
|
||||
print <<AVERT;
|
||||
|
||||
Avertissement Evoauth
|
||||
---------------------
|
||||
enable doit etre egal a 1 dans /etc/evoauth/evoauth.conf avant
|
||||
de continuer".
|
||||
AVERT
|
||||
exit;
|
||||
}
|
||||
|
||||
|
||||
sub Usage() {
|
||||
print "\nusage :\n";
|
||||
print "-i : initialisation du logiciel\n";
|
||||
|
|
Reference in a new issue