🐛 — Make the provisioning task even if there is no $ENV{MOJO_CONFIG}
This commit is contained in:
parent
222fe59ebc
commit
5e248e06ac
|
@ -74,10 +74,11 @@ sub startup {
|
|||
}
|
||||
|
||||
# Recurrent task
|
||||
my $config_file = $ENV{MOJO_CONFIG} || $self->moniker.'.conf';
|
||||
Mojo::IOLoop->recurring(2 => sub {
|
||||
my $loop = shift;
|
||||
|
||||
my $lockfile = Mojo::File->new($ENV{MOJO_CONFIG})->basename('.conf').'-provisioning.lock';
|
||||
my $lockfile = Mojo::File->new($config_file)->basename('.conf').'-provisioning.lock';
|
||||
if (-e $lockfile) {
|
||||
my ($dev,$ino,$mode,$nlink,$uid,$gid,$rdev,$size,$atime,$mtime,$ctime,$blksize,$blocks) = stat($lockfile);
|
||||
|
||||
|
|
Loading…
Reference in New Issue