✨ — Add a setting (fix #242)
This commit is contained in:
parent
9e5deac209
commit
340a502202
|
@ -7,6 +7,7 @@ Revision history for Lufi
|
||||||
- ➖ — Replace moment.js with Date().toLocaleDateString(…)
|
- ➖ — Replace moment.js with Date().toLocaleDateString(…)
|
||||||
- 🩹 — Fix Roboto font warnings in js console
|
- 🩹 — Fix Roboto font warnings in js console
|
||||||
- ♿️ — Add autofocus on login input field
|
- ♿️ — Add autofocus on login input field
|
||||||
|
- ✨ — Add a `lockfile_dir` setting (fix #242)
|
||||||
|
|
||||||
0.06.00 2023-12-18
|
0.06.00 2023-12-18
|
||||||
- ⬆️ — Update deps
|
- ⬆️ — Update deps
|
||||||
|
|
|
@ -79,6 +79,9 @@ sub startup {
|
||||||
my $loop = shift;
|
my $loop = shift;
|
||||||
|
|
||||||
my $lockfile = Mojo::File->new($config_file)->basename('.conf').'-provisioning.lock';
|
my $lockfile = Mojo::File->new($config_file)->basename('.conf').'-provisioning.lock';
|
||||||
|
if (defined($config->{lockfile_dir})) {
|
||||||
|
$lockfile = Mojo::File->new($config->{lockfile_dir}, $lockfile)->to_string;
|
||||||
|
}
|
||||||
if (-e $lockfile) {
|
if (-e $lockfile) {
|
||||||
my ($dev,$ino,$mode,$nlink,$uid,$gid,$rdev,$size,$atime,$mtime,$ctime,$blksize,$blocks) = stat($lockfile);
|
my ($dev,$ino,$mode,$nlink,$uid,$gid,$rdev,$size,$atime,$mtime,$ctime,$blksize,$blocks) = stat($lockfile);
|
||||||
|
|
||||||
|
|
|
@ -149,6 +149,14 @@
|
||||||
# 1 => 'Illegal content',
|
# 1 => 'Illegal content',
|
||||||
#},
|
#},
|
||||||
|
|
||||||
|
# Lockfile directory
|
||||||
|
# In which directory do you want to store the lockfile?
|
||||||
|
# If using load balancing, you will want to set a directory shared by the servers
|
||||||
|
# You can define it relative to lufi directory or set an absolute path
|
||||||
|
# Remember that it has to be in a directory writable by Lufi user
|
||||||
|
# optional, default is lufi directory
|
||||||
|
#lockfile_dir => '.',
|
||||||
|
|
||||||
###############
|
###############
|
||||||
# Mail settings
|
# Mail settings
|
||||||
###############
|
###############
|
||||||
|
|
|
@ -139,6 +139,14 @@
|
||||||
1 => 'Illegal content',
|
1 => 'Illegal content',
|
||||||
},
|
},
|
||||||
|
|
||||||
|
# Lockfile directory
|
||||||
|
# In which directory do you want to store the lockfile?
|
||||||
|
# If using load balancing, you will want to set a directory shared by the servers
|
||||||
|
# You can define it relative to lufi directory or set an absolute path
|
||||||
|
# Remember that it has to be in a directory writable by Lufi user
|
||||||
|
# optional, default is lufi directory
|
||||||
|
#lockfile_dir => '.',
|
||||||
|
|
||||||
###############
|
###############
|
||||||
# Mail settings
|
# Mail settings
|
||||||
###############
|
###############
|
||||||
|
|
|
@ -135,6 +135,14 @@
|
||||||
1 => 'Illegal content',
|
1 => 'Illegal content',
|
||||||
},
|
},
|
||||||
|
|
||||||
|
# Lockfile directory
|
||||||
|
# In which directory do you want to store the lockfile?
|
||||||
|
# If using load balancing, you will want to set a directory shared by the servers
|
||||||
|
# You can define it relative to lufi directory or set an absolute path
|
||||||
|
# Remember that it has to be in a directory writable by Lufi user
|
||||||
|
# optional, default is lufi directory
|
||||||
|
#lockfile_dir => '.',
|
||||||
|
|
||||||
###############
|
###############
|
||||||
# Mail settings
|
# Mail settings
|
||||||
###############
|
###############
|
||||||
|
|
|
@ -139,6 +139,14 @@
|
||||||
1 => 'Illegal content',
|
1 => 'Illegal content',
|
||||||
},
|
},
|
||||||
|
|
||||||
|
# Lockfile directory
|
||||||
|
# In which directory do you want to store the lockfile?
|
||||||
|
# If using load balancing, you will want to set a directory shared by the servers
|
||||||
|
# You can define it relative to lufi directory or set an absolute path
|
||||||
|
# Remember that it has to be in a directory writable by Lufi user
|
||||||
|
# optional, default is lufi directory
|
||||||
|
#lockfile_dir => '.',
|
||||||
|
|
||||||
###############
|
###############
|
||||||
# Mail settings
|
# Mail settings
|
||||||
###############
|
###############
|
||||||
|
|
Loading…
Reference in New Issue