From 512781bd9259ec07dd7f2958b0074f2f49573970 Mon Sep 17 00:00:00 2001 From: Thomas Hochstein Date: Mon, 2 Sep 2013 06:44:32 +0200 Subject: [PATCH] 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 --- install/install.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install/install.pl b/install/install.pl index 374d74b..4069bf5 100755 --- a/install/install.pl +++ b/install/install.pl @@ -36,12 +36,12 @@ GetOptions ('u|update=s' => \$OptUpdate, 'V|version' => \&ShowVersion) or exit 1; ### change working directory to .. (as we're in .../install) -chdir dirname($0).'/..'; +chdir dirname($FullPath).'/..'; my $Path = cwd(); ### read configuration print("Reading configuration.\n"); -my %Conf = %{ReadConfig($HomePath.'/newsstats.conf')}; +my %Conf = %{ReadConfig($Path.'/newsstats.conf')}; ##### -------------------------------------------------------------------------- ##### Database table definitions -- 2.20.1