Fix config path detection for install.pl.
Make use of $Path - which is set and checked to display a correct 'newsfeeds' example - to load our configuration from the correct location. Signed-off-by: Thomas Hochstein <thh@inter.net>
This commit is contained in:
parent
7b310df13f
commit
512781bd92
|
@ -36,12 +36,12 @@ GetOptions ('u|update=s' => \$OptUpdate,
|
||||||
'V|version' => \&ShowVersion) or exit 1;
|
'V|version' => \&ShowVersion) or exit 1;
|
||||||
|
|
||||||
### change working directory to .. (as we're in .../install)
|
### change working directory to .. (as we're in .../install)
|
||||||
chdir dirname($0).'/..';
|
chdir dirname($FullPath).'/..';
|
||||||
my $Path = cwd();
|
my $Path = cwd();
|
||||||
|
|
||||||
### read configuration
|
### read configuration
|
||||||
print("Reading configuration.\n");
|
print("Reading configuration.\n");
|
||||||
my %Conf = %{ReadConfig($HomePath.'/newsstats.conf')};
|
my %Conf = %{ReadConfig($Path.'/newsstats.conf')};
|
||||||
|
|
||||||
##### --------------------------------------------------------------------------
|
##### --------------------------------------------------------------------------
|
||||||
##### Database table definitions
|
##### Database table definitions
|
||||||
|
|
Loading…
Reference in a new issue