File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 11<?php
22
33define ("GLPI_ROOT " , "../../../../.. " );
4- include GLPI_ROOT . "/inc/based_config .php " ;
4+ include GLPI_ROOT . "/stubs/glpi_constants .php " ;
55echo "GLPI_LOG_DIR= " . GLPI_LOG_DIR . "\n" ;
66echo "GLPI_LOCK_DIR= " . GLPI_LOCK_DIR . "\n" ;
Original file line number Diff line number Diff line change @@ -127,8 +127,10 @@ function cleanup($pidfile)
127127ini_set ("max_execution_time " , "0 " );
128128
129129chdir (dirname ($ _SERVER ["argv " ][0 ]));
130+
130131define ("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 ;
169172exec ($ cmd , $ out , $ ret );
170173foreach ($ out as $ line ) {
171174 fwrite ($ log , $ line . "\n" );
You can’t perform that action at this time.
0 commit comments