mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-01-27 00:33:34 +00:00
'perl update-davical-database' did not find the intended config file / patchdir
people may use that invocation in addition to calling /usr/share/davical/dba/update-debian-database, and happen upon a cryptic error when YAML tries to parse dba/update-davical-database instead of config/administration.yml
This commit is contained in:
parent
5dc4aed87c
commit
7674fe9831
@ -26,8 +26,8 @@ my $force_owner = "";
|
||||
my $config_file = "config/administration.yml";
|
||||
|
||||
my $dbadir = $0;
|
||||
$dbadir =~ s#/[^/]*$##;
|
||||
my $patchdir = $dbadir . "/patches";
|
||||
$dbadir =~ s#[^/]*$##;
|
||||
my $patchdir = $dbadir . "patches";
|
||||
|
||||
#
|
||||
# We look in a few places for the config file. First relative to
|
||||
@ -35,7 +35,7 @@ my $patchdir = $dbadir . "/patches";
|
||||
# start to look in absolute locations. Then we give up :-)
|
||||
if ( ! -f $config_file ) {
|
||||
$config_file = $0;
|
||||
$config_file =~ s{[^/]+/update-[a-z]+-database}{config/administration.yml};
|
||||
$config_file =~ s{update-[a-z]+-database}{../config/administration.yml};
|
||||
}
|
||||
if ( ! -f $config_file ) {
|
||||
$config_file = "/etc/davical/administration.yml";
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user