Fix #210🐛 — Change lufi-provisioning.lock handling process

This commit is contained in:
Luc Didry 2020-08-20 10:17:37 +02:00
parent 5c5b65e1b7
commit dead270e50
No known key found for this signature in database
GPG Key ID: EA868E12D0257E3C
1 changed files with 2 additions and 2 deletions

View File

@ -90,11 +90,11 @@ sub startup {
}
}
$lockfile = Mojo::File->new($lockfile)->touch();
Mojo::File->new($lockfile)->open('>'); # Create the file, like ->touch() but does not croak on fail
$self->provisioning();
$lockfile->remove();
unlink $lockfile if -e $lockfile;
});
# Create directory if needed