Skip to content

Commit 4f94abf

Browse files
committed
Try fix paths - see #384
1 parent 2cf9830 commit 4f94abf

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

public/scripts/glpienv.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

33
define("GLPI_ROOT", "../../../../..");
4-
include GLPI_ROOT . "/inc/based_config.php";
4+
include GLPI_ROOT . "/stubs/glpi_constants.php";
55
echo "GLPI_LOG_DIR=" . GLPI_LOG_DIR . "\n";
66
echo "GLPI_LOCK_DIR=" . GLPI_LOCK_DIR . "\n";

public/scripts/run.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,10 @@ function cleanup($pidfile)
127127
ini_set("max_execution_time", "0");
128128

129129
chdir(dirname($_SERVER["argv"][0]));
130+
130131
define("GLPI_ROOT", realpath(dirname($_SERVER["argv"][0]) . "/../../../.."));
131-
require GLPI_ROOT . "/inc/based_config.php";
132+
133+
require GLPI_ROOT . "/stubs/glpi_constants.php";
132134

133135
$processid = date("zHi");
134136
$server_id = "";
@@ -166,6 +168,7 @@ function cleanup($pidfile)
166168
$cmd = PHP_BINARY." -q -d -f ocsng_fullsync.php --ocs_server_id=$server_id --managedeleted=1";
167169
$out = array();
168170
$ret = 0;
171+
echo $cmd;
169172
exec($cmd, $out, $ret);
170173
foreach ($out as $line) {
171174
fwrite($log, $line . "\n");

0 commit comments

Comments
 (0)