Fix config path detection for install.pl.
authorThomas Hochstein <thh@inter.net>
Mon, 2 Sep 2013 04:44:32 +0000 (06:44 +0200)
committerThomas Hochstein <thh@inter.net>
Mon, 2 Sep 2013 10:04:11 +0000 (12:04 +0200)
install.pl is located in .../install, so replace
this component in $HomePath with '.' and change
'..' to '.' as configuration is located in .../.

Signed-off-by: Thomas Hochstein <thh@inter.net>
install/install.pl

index 374d74b..0787805 100755 (executable)
@@ -40,6 +40,8 @@ chdir dirname($0).'/..';
 my $Path = cwd();
 
 ### read configuration
+$HomePath = '..' if ($HomePath eq '.');
+$HomePath =~ s/install/./;
 print("Reading configuration.\n");
 my %Conf = %{ReadConfig($HomePath.'/newsstats.conf')};
 
This page took 0.012082 seconds and 4 git commands to generate.