From: Thomas Hochstein Date: Fri, 17 Sep 2010 21:04:46 +0000 (+0200) Subject: install.pl: Fix chdir. X-Git-Tag: 0.01~32 X-Git-Url: https://code.th-h.de/?p=usenet%2Fnewsstats.git;a=commitdiff_plain;h=2af6c2902f0490ca5920791e665fd7448d3430b9 install.pl: Fix chdir. Don't use path from current working directory, use path relative to $0 instead. Signed-off-by: Thomas Hochstein --- diff --git a/install/install.pl b/install/install.pl index 9b6b332..8db7d6a 100755 --- a/install/install.pl +++ b/install/install.pl @@ -31,7 +31,7 @@ use DBI; my %Options = &ReadOptions(''); ### change working directory to .. (as we're in .../install) -chdir '..'; +chdir dirname($0).'/..'; ### read configuration print("Reading configuration.\n");