install.pl: Fix chdir.
[usenet/newsstats.git] / install / install.pl
index 9b6b332..8db7d6a 100755 (executable)
@@ -31,7 +31,7 @@ use DBI;
 my %Options = &ReadOptions('');\r
 \r
 ### change working directory to .. (as we're in .../install)\r
 my %Options = &ReadOptions('');\r
 \r
 ### change working directory to .. (as we're in .../install)\r
-chdir '..';\r
+chdir dirname($0).'/..';\r
 \r
 ### read configuration\r
 print("Reading configuration.\n");\r
 \r
 ### read configuration\r
 print("Reading configuration.\n");\r
This page took 0.010418 seconds and 4 git commands to generate.