🐛 — Trying to fix the provisioning task
This commit is contained in:
parent
5e2dd60cf2
commit
222fe59ebc
|
@ -2,6 +2,7 @@ Revision history for Lufi
|
||||||
|
|
||||||
?.??.? ????-??-??
|
?.??.? ????-??-??
|
||||||
- 🔥 Remove code from abandonned feature
|
- 🔥 Remove code from abandonned feature
|
||||||
|
- Trying to fix the provisioning task
|
||||||
|
|
||||||
0.05.1 2020-06-30
|
0.05.1 2020-06-30
|
||||||
- Update german translation
|
- Update german translation
|
||||||
|
|
11
lib/Lufi.pm
11
lib/Lufi.pm
|
@ -78,7 +78,16 @@ sub startup {
|
||||||
my $loop = shift;
|
my $loop = shift;
|
||||||
|
|
||||||
my $lockfile = Mojo::File->new($ENV{MOJO_CONFIG})->basename('.conf').'-provisioning.lock';
|
my $lockfile = Mojo::File->new($ENV{MOJO_CONFIG})->basename('.conf').'-provisioning.lock';
|
||||||
return if -e $lockfile;
|
if (-e $lockfile) {
|
||||||
|
my ($dev,$ino,$mode,$nlink,$uid,$gid,$rdev,$size,$atime,$mtime,$ctime,$blksize,$blocks) = stat($lockfile);
|
||||||
|
|
||||||
|
# Remove the lockfile if more than 20 seconds old
|
||||||
|
if (time - $mtime > 20) {
|
||||||
|
unlink $lockfile if -e $lockfile; # if -e just to be sure the file hasn’t been removed while checking it
|
||||||
|
} else {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
$lockfile = Mojo::File->new($lockfile)->touch();
|
$lockfile = Mojo::File->new($lockfile)->touch();
|
||||||
|
|
||||||
|
|
|
@ -138,15 +138,15 @@ msgstr "Copy all links to clipboard"
|
||||||
msgid "Copy to clipboard"
|
msgid "Copy to clipboard"
|
||||||
msgstr "Copy to clipboard"
|
msgstr "Copy to clipboard"
|
||||||
|
|
||||||
#: lib/Lufi/Controller/Files.pm:502
|
#: lib/Lufi/Controller/Files.pm:501
|
||||||
msgid "Could not delete the file. You are not authenticated."
|
msgid "Could not delete the file. You are not authenticated."
|
||||||
msgstr "Could not delete the file. You are not authenticated."
|
msgstr "Could not delete the file. You are not authenticated."
|
||||||
|
|
||||||
#: lib/Lufi/Controller/Files.pm:484
|
#: lib/Lufi/Controller/Files.pm:483
|
||||||
msgid "Could not find the file. Are you sure of the URL and the token?"
|
msgid "Could not find the file. Are you sure of the URL and the token?"
|
||||||
msgstr "Could not find the file. Are you sure of the URL and the token?"
|
msgstr "Could not find the file. Are you sure of the URL and the token?"
|
||||||
|
|
||||||
#: lib/Lufi/Controller/Files.pm:395
|
#: lib/Lufi/Controller/Files.pm:394
|
||||||
msgid "Could not find the file. Are you sure of the URL?"
|
msgid "Could not find the file. Are you sure of the URL?"
|
||||||
msgstr "Could not find the file. Are you sure of the URL?"
|
msgstr "Could not find the file. Are you sure of the URL?"
|
||||||
|
|
||||||
|
@ -222,15 +222,15 @@ msgstr "Emails"
|
||||||
msgid "Encrypting part XX1 of XX2"
|
msgid "Encrypting part XX1 of XX2"
|
||||||
msgstr "Encrypting part XX1 of XX2"
|
msgstr "Encrypting part XX1 of XX2"
|
||||||
|
|
||||||
#: lib/Lufi/Controller/Files.pm:284
|
#: lib/Lufi/Controller/Files.pm:283
|
||||||
msgid "Error: the file existed but was deleted."
|
msgid "Error: the file existed but was deleted."
|
||||||
msgstr "Error: the file existed but was deleted."
|
msgstr "Error: the file existed but was deleted."
|
||||||
|
|
||||||
#: lib/Lufi/Controller/Files.pm:364
|
#: lib/Lufi/Controller/Files.pm:363
|
||||||
msgid "Error: the file has not been sent entirely."
|
msgid "Error: the file has not been sent entirely."
|
||||||
msgstr "Error: the file has not been sent entirely."
|
msgstr "Error: the file has not been sent entirely."
|
||||||
|
|
||||||
#: lib/Lufi/Controller/Files.pm:374
|
#: lib/Lufi/Controller/Files.pm:373
|
||||||
msgid "Error: unable to find the file. Are you sure of your URL?"
|
msgid "Error: unable to find the file. Are you sure of your URL?"
|
||||||
msgstr "Error: unable to find the file. Are you sure of your URL?"
|
msgstr "Error: unable to find the file. Are you sure of your URL?"
|
||||||
|
|
||||||
|
@ -250,7 +250,7 @@ msgstr "Expires at"
|
||||||
msgid "Export localStorage data"
|
msgid "Export localStorage data"
|
||||||
msgstr "Export localStorage data"
|
msgstr "Export localStorage data"
|
||||||
|
|
||||||
#: lib/Lufi/Controller/Files.pm:466
|
#: lib/Lufi/Controller/Files.pm:465
|
||||||
msgid "File deleted"
|
msgid "File deleted"
|
||||||
msgstr "File deleted"
|
msgstr "File deleted"
|
||||||
|
|
||||||
|
@ -585,7 +585,7 @@ msgstr "The email subject can't be empty."
|
||||||
msgid "The expiration delay (%1) is not between 1 and %2 days."
|
msgid "The expiration delay (%1) is not between 1 and %2 days."
|
||||||
msgstr "The expiration delay (%1) is not between 1 and %2 days."
|
msgstr "The expiration delay (%1) is not between 1 and %2 days."
|
||||||
|
|
||||||
#: lib/Lufi/Controller/Files.pm:463
|
#: lib/Lufi/Controller/Files.pm:462
|
||||||
msgid "The file has already been deleted"
|
msgid "The file has already been deleted"
|
||||||
msgstr "The file has already been deleted"
|
msgstr "The file has already been deleted"
|
||||||
|
|
||||||
|
@ -640,11 +640,11 @@ msgstr "The mail has been sent."
|
||||||
msgid "The original (and only for now) author is <a href=\"https://fiat-tux.fr\" class=\"classic\">Luc Didry</a>."
|
msgid "The original (and only for now) author is <a href=\"https://fiat-tux.fr\" class=\"classic\">Luc Didry</a>."
|
||||||
msgstr "The original (and only for now) author is <a href=\"https://fiat-tux.fr\" class=\"classic\">Luc Didry</a>."
|
msgstr "The original (and only for now) author is <a href=\"https://fiat-tux.fr\" class=\"classic\">Luc Didry</a>."
|
||||||
|
|
||||||
#: lib/Lufi/Controller/Files.pm:231
|
#: lib/Lufi/Controller/Files.pm:230
|
||||||
msgid "The server was unable to find the file record to add your file part to. Please, contact the administrator."
|
msgid "The server was unable to find the file record to add your file part to. Please, contact the administrator."
|
||||||
msgstr "The server was unable to find the file record to add your file part to. Please, contact the administrator."
|
msgstr "The server was unable to find the file record to add your file part to. Please, contact the administrator."
|
||||||
|
|
||||||
#: lib/Lufi/Controller/Files.pm:290
|
#: lib/Lufi/Controller/Files.pm:289
|
||||||
msgid "This file has been deactivated by the admins. Contact them to know why."
|
msgid "This file has been deactivated by the admins. Contact them to know why."
|
||||||
msgstr "This file has been deactivated by the admins. Contact them to know why."
|
msgstr "This file has been deactivated by the admins. Contact them to know why."
|
||||||
|
|
||||||
|
@ -674,17 +674,17 @@ msgid "Unable to copy the link(s) to your clipboard"
|
||||||
msgstr "Unable to copy the link(s) to your clipboard"
|
msgstr "Unable to copy the link(s) to your clipboard"
|
||||||
|
|
||||||
#. ($short)
|
#. ($short)
|
||||||
#: lib/Lufi/Controller/Files.pm:434
|
#: lib/Lufi/Controller/Files.pm:433
|
||||||
msgid "Unable to get counter for %1. The file does not exists. It will be removed from your localStorage."
|
msgid "Unable to get counter for %1. The file does not exists. It will be removed from your localStorage."
|
||||||
msgstr "Unable to get counter for %1. The file does not exists. It will be removed from your localStorage."
|
msgstr "Unable to get counter for %1. The file does not exists. It will be removed from your localStorage."
|
||||||
|
|
||||||
#. ($short)
|
#. ($short)
|
||||||
#: lib/Lufi/Controller/Files.pm:424
|
#: lib/Lufi/Controller/Files.pm:423
|
||||||
msgid "Unable to get counter for %1. The token is invalid."
|
msgid "Unable to get counter for %1. The token is invalid."
|
||||||
msgstr "Unable to get counter for %1. The token is invalid."
|
msgstr "Unable to get counter for %1. The token is invalid."
|
||||||
|
|
||||||
#. ($short)
|
#. ($short)
|
||||||
#: lib/Lufi/Controller/Files.pm:444
|
#: lib/Lufi/Controller/Files.pm:443
|
||||||
msgid "Unable to get counter for %1. You are not authenticated."
|
msgid "Unable to get counter for %1. You are not authenticated."
|
||||||
msgstr "Unable to get counter for %1. You are not authenticated."
|
msgstr "Unable to get counter for %1. You are not authenticated."
|
||||||
|
|
||||||
|
@ -769,7 +769,7 @@ msgstr "Your browser does not have enough entropy to generate a strong encryptio
|
||||||
msgid "Your file is too big: %1 (maximum size allowed: %2)"
|
msgid "Your file is too big: %1 (maximum size allowed: %2)"
|
||||||
msgstr "Your file is too big: %1 (maximum size allowed: %2)"
|
msgstr "Your file is too big: %1 (maximum size allowed: %2)"
|
||||||
|
|
||||||
#: lib/Lufi/Controller/Files.pm:346
|
#: lib/Lufi/Controller/Files.pm:345
|
||||||
msgid "Your password is not valid. Please refresh the page to retry."
|
msgid "Your password is not valid. Please refresh the page to retry."
|
||||||
msgstr "Your password is not valid. Please refresh the page to retry."
|
msgstr "Your password is not valid. Please refresh the page to retry."
|
||||||
|
|
||||||
|
|
|
@ -138,15 +138,15 @@ msgstr ""
|
||||||
msgid "Copy to clipboard"
|
msgid "Copy to clipboard"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/Lufi/Controller/Files.pm:502
|
#: lib/Lufi/Controller/Files.pm:501
|
||||||
msgid "Could not delete the file. You are not authenticated."
|
msgid "Could not delete the file. You are not authenticated."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/Lufi/Controller/Files.pm:484
|
#: lib/Lufi/Controller/Files.pm:483
|
||||||
msgid "Could not find the file. Are you sure of the URL and the token?"
|
msgid "Could not find the file. Are you sure of the URL and the token?"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/Lufi/Controller/Files.pm:395
|
#: lib/Lufi/Controller/Files.pm:394
|
||||||
msgid "Could not find the file. Are you sure of the URL?"
|
msgid "Could not find the file. Are you sure of the URL?"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
@ -222,15 +222,15 @@ msgstr ""
|
||||||
msgid "Encrypting part XX1 of XX2"
|
msgid "Encrypting part XX1 of XX2"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/Lufi/Controller/Files.pm:284
|
#: lib/Lufi/Controller/Files.pm:283
|
||||||
msgid "Error: the file existed but was deleted."
|
msgid "Error: the file existed but was deleted."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/Lufi/Controller/Files.pm:364
|
#: lib/Lufi/Controller/Files.pm:363
|
||||||
msgid "Error: the file has not been sent entirely."
|
msgid "Error: the file has not been sent entirely."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/Lufi/Controller/Files.pm:374
|
#: lib/Lufi/Controller/Files.pm:373
|
||||||
msgid "Error: unable to find the file. Are you sure of your URL?"
|
msgid "Error: unable to find the file. Are you sure of your URL?"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
@ -250,7 +250,7 @@ msgstr ""
|
||||||
msgid "Export localStorage data"
|
msgid "Export localStorage data"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/Lufi/Controller/Files.pm:466
|
#: lib/Lufi/Controller/Files.pm:465
|
||||||
msgid "File deleted"
|
msgid "File deleted"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
@ -585,7 +585,7 @@ msgstr ""
|
||||||
msgid "The expiration delay (%1) is not between 1 and %2 days."
|
msgid "The expiration delay (%1) is not between 1 and %2 days."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/Lufi/Controller/Files.pm:463
|
#: lib/Lufi/Controller/Files.pm:462
|
||||||
msgid "The file has already been deleted"
|
msgid "The file has already been deleted"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
@ -640,11 +640,11 @@ msgstr ""
|
||||||
msgid "The original (and only for now) author is <a href=\"https://fiat-tux.fr\" class=\"classic\">Luc Didry</a>."
|
msgid "The original (and only for now) author is <a href=\"https://fiat-tux.fr\" class=\"classic\">Luc Didry</a>."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/Lufi/Controller/Files.pm:231
|
#: lib/Lufi/Controller/Files.pm:230
|
||||||
msgid "The server was unable to find the file record to add your file part to. Please, contact the administrator."
|
msgid "The server was unable to find the file record to add your file part to. Please, contact the administrator."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/Lufi/Controller/Files.pm:290
|
#: lib/Lufi/Controller/Files.pm:289
|
||||||
msgid "This file has been deactivated by the admins. Contact them to know why."
|
msgid "This file has been deactivated by the admins. Contact them to know why."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
@ -674,17 +674,17 @@ msgid "Unable to copy the link(s) to your clipboard"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. ($short)
|
#. ($short)
|
||||||
#: lib/Lufi/Controller/Files.pm:434
|
#: lib/Lufi/Controller/Files.pm:433
|
||||||
msgid "Unable to get counter for %1. The file does not exists. It will be removed from your localStorage."
|
msgid "Unable to get counter for %1. The file does not exists. It will be removed from your localStorage."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. ($short)
|
#. ($short)
|
||||||
#: lib/Lufi/Controller/Files.pm:424
|
#: lib/Lufi/Controller/Files.pm:423
|
||||||
msgid "Unable to get counter for %1. The token is invalid."
|
msgid "Unable to get counter for %1. The token is invalid."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. ($short)
|
#. ($short)
|
||||||
#: lib/Lufi/Controller/Files.pm:444
|
#: lib/Lufi/Controller/Files.pm:443
|
||||||
msgid "Unable to get counter for %1. You are not authenticated."
|
msgid "Unable to get counter for %1. You are not authenticated."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
@ -769,7 +769,7 @@ msgstr ""
|
||||||
msgid "Your file is too big: %1 (maximum size allowed: %2)"
|
msgid "Your file is too big: %1 (maximum size allowed: %2)"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/Lufi/Controller/Files.pm:346
|
#: lib/Lufi/Controller/Files.pm:345
|
||||||
msgid "Your password is not valid. Please refresh the page to retry."
|
msgid "Your password is not valid. Please refresh the page to retry."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue