From d81843344e9a9556d625ff1a62373d83a7f3c27e Mon Sep 17 00:00:00 2001 From: pi Date: Thu, 4 Jun 2020 21:08:09 +0000 Subject: [PATCH 1/2] =?UTF-8?q?=F0=9F=8C=90=20Translated=20using=20Weblate?= =?UTF-8?q?=20(German)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Currently translated at 100.0% (192 of 192 strings) Translation: Lufi/Default theme Translate-URL: https://weblate.framasoft.org/projects/lufi/default-theme/de/ --- themes/default/lib/Lufi/I18N/de.po | 34 ++++++++++++++++++++++++------ 1 file changed, 28 insertions(+), 6 deletions(-) diff --git a/themes/default/lib/Lufi/I18N/de.po b/themes/default/lib/Lufi/I18N/de.po index a6a7fb3..31fbbdc 100644 --- a/themes/default/lib/Lufi/I18N/de.po +++ b/themes/default/lib/Lufi/I18N/de.po @@ -5,8 +5,8 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "POT-Creation-Date: YEAR-MO-DA HO:MI+ZONE\n" -"PO-Revision-Date: 2020-03-22 18:29+0000\n" -"Last-Translator: Luc Didry \n" +"PO-Revision-Date: 2020-06-05 22:24+0000\n" +"Last-Translator: pi \n" "Language-Team: German \n" "Language: de\n" @@ -991,9 +991,31 @@ msgstr "" #: themes/default/templates/about.html.ep:17 msgid "As Lufi is a free software licensed under of the terms of the AGPLv3, you can install it on you own server. Have a look on the Wiki for the procedure." msgstr "" -"Da es sich bei Lufi um eine freie Software handelt, die unter den edingungen " -"der AGPLv3 lizenziert ist, können Sie sie auf Ihrem eigenen Server " -"installieren. Werfen Sie einen Blick auf die AGPLv3 lizenziert ist, können Sie sie auf Ihrem eigenen Server " +"installieren. Werfen Sie einen Blick in das Wiki für das " "Verfahren." + +#: themes/default/templates/partial/index.js.ep:24 +msgid "File uploaded" +msgstr "Datei hochgeladen" + +#: themes/default/templates/partial/render.js.ep:9 +msgid "File downloaded" +msgstr "Datei heruntergeladen" + +#. (sprintf('%s', stash('version') +#: themes/default/templates/about.html.ep:22 +msgid "Latest commit of this instance: %1" +msgstr "Neueste Änderung dieser Instanz: %1" + +#. (sprintf('%s', stash('version') +#: themes/default/templates/about.html.ep:21 +msgid "Latest tag of this instance: %1" +msgstr "Neueste Version dieser Instanz: %1" + +#: themes/default/templates/about.html.ep:20 +msgid "Version" +msgstr "Version" From 0ec7f739bf7f3720de0cdb8cc8bf7e846a7c1302 Mon Sep 17 00:00:00 2001 From: Luc Didry Date: Tue, 30 Jun 2020 07:43:43 +0200 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=90=9B=20=E2=80=94=20Fix=20possible?= =?UTF-8?q?=20high=20load=20due=20to=20concurrent=20provisioning?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/Lufi.pm | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/Lufi.pm b/lib/Lufi.pm index 4f961f3..efeb40e 100644 --- a/lib/Lufi.pm +++ b/lib/Lufi.pm @@ -2,6 +2,7 @@ package Lufi; use Mojo::Base 'Mojolicious'; use Mojolicious::Sessions; +use Mojo::File; use Email::Valid; use Data::Validate::URI qw(is_web_uri); use Lufi::DefaultConfig qw($default_config); @@ -76,7 +77,14 @@ sub startup { Mojo::IOLoop->recurring(2 => sub { my $loop = shift; + my $lockfile = Mojo::File->new($ENV{MOJO_CONFIG})->basename('.conf').'-provisioning.lock'; + return if -e $lockfile; + + $lockfile = Mojo::File->new($lockfile)->touch(); + $self->provisioning(); + + $lockfile->remove(); }); # Create directory if needed