From 6b210ea056a290fc7fd785e7f5a888257d45e44e Mon Sep 17 00:00:00 2001 From: Tom Laermans Date: Sun, 8 Apr 2012 10:44:41 +0000 Subject: [PATCH] change directory to observium root, now also for other commandline tools git-svn-id: http://www.observium.org/svn/observer/trunk@2990 61d68cd4-352d-0410-923a-c4978735b2b8 --- addhost.php | 2 ++ adduser.php | 2 ++ billing-calculate.php | 2 ++ check-errors.php | 2 ++ check-services.php | 2 ++ delhost.php | 2 ++ irc.php | 2 ++ poll-billing.php | 2 ++ renamehost.php | 2 ++ 9 files changed, 18 insertions(+) diff --git a/addhost.php b/addhost.php index de9a46e1ff..d57089186a 100755 --- a/addhost.php +++ b/addhost.php @@ -12,6 +12,8 @@ * See COPYING for more details. */ +chdir(dirname($argv[0])); + include("includes/defaults.inc.php"); include("config.php"); include("includes/functions.php"); diff --git a/adduser.php b/adduser.php index 34ea943c72..23257cc960 100755 --- a/adduser.php +++ b/adduser.php @@ -1,6 +1,8 @@ #!/usr/bin/env php