diff --git a/doc/rpm-build/post_install.php b/doc/rpm-build/post_install.php index 44f3510ba5..7497c40c35 100755 --- a/doc/rpm-build/post_install.php +++ b/doc/rpm-build/post_install.php @@ -568,6 +568,12 @@ function check_install_pear_packages() global $config; $packages_installed = pear_list(); + // some setup files use autoloader + define('EGW_SERVER_ROOT', dirname(dirname(__DIR__))); + define('EGW_INCLUDE_ROOT', EGW_SERVER_ROOT); + define('EGW_API_INC', EGW_SERVER_ROOT.'/phpgwapi/inc'); + include_once(EGW_API_INC.'/common_functions.inc.php'); + // read required packages from apps $packages = array('PEAR' => true, 'HTTP_WebDAV_Server' => '999.egw-pear'); // pear must be the first, to run it's update first! $channels = array();