File centreon-web-cron-path.patch of Package centreon-web

Index: centreon-web-19.04.4/cron/centAcl.php
===================================================================
--- centreon-web-19.04.4.orig/cron/centAcl.php
+++ centreon-web-19.04.4/cron/centAcl.php
@@ -34,13 +34,13 @@
  *
  */
 
-require_once realpath(__DIR__ . "/../config/centreon.config.php");
-include_once _CENTREON_PATH_ . "/cron/centAcl-Func.php";
-include_once _CENTREON_PATH_ . "/www/class/centreonDB.class.php";
-include_once _CENTREON_PATH_ . "/www/class/centreonLDAP.class.php";
-include_once _CENTREON_PATH_ . "/www/class/centreonMeta.class.php";
-include_once _CENTREON_PATH_ . "/www/class/centreonContactgroup.class.php";
-include_once _CENTREON_PATH_ . "/www/class/centreonLog.class.php";
+require_once "@CENTREON_DIR@/config/centreon.config.php";
+include_once "@CENTREON_DIR@/cron/centAcl-Func.php";
+include_once "@CENTREON_DIR@/www/class/centreonDB.class.php";
+include_once "@CENTREON_DIR@/www/class/centreonLDAP.class.php";
+include_once "@CENTREON_DIR@/www/class/centreonMeta.class.php";
+include_once "@CENTREON_DIR@/www/class/centreonContactgroup.class.php";
+include_once "@CENTREON_DIR@/www/class/centreonLog.class.php";
 
 $centreonDbName = $conf_centreon['db'];
 $centreonLog = new CentreonLog();
openSUSE Build Service is sponsored by