config file
This commit is contained in:
parent
51291f14f2
commit
a337b473e3
2 changed files with 6 additions and 3 deletions
3
application.conf.example
Normal file
3
application.conf.example
Normal file
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
password => '',
|
||||
}
|
|
@ -8,13 +8,13 @@ use File::Basename 'basename';
|
|||
use File::Path 'mkpath';
|
||||
use File::Spec 'catfile';
|
||||
use Cwd;
|
||||
use Getopt::Long;
|
||||
|
||||
use Imager;
|
||||
|
||||
my $config = plugin 'Config'=> {file => 'application.conf'};;
|
||||
|
||||
my $predefined_user = 'alpha6';
|
||||
my $predefined_password = "";
|
||||
GetOptions('password=s', \$predefined_password);
|
||||
my $predefined_password = $config->{'password'};
|
||||
|
||||
die "No user password defined!" unless($predefined_password);
|
||||
|
||||
|
|
Loading…
Reference in a new issue