#1781 missing cron part added to conf.php.template.
This commit is contained in:
parent
363168a04d
commit
68ca1b5a95
2 changed files with 26 additions and 6 deletions
|
@ -108,6 +108,7 @@ REPLACE_SED_STRING="s/ls_lib_dir/${USR_LIB_DIR_S}/; \
|
||||||
s/ls_dbpassword/${DB_PASSWORD}/; \
|
s/ls_dbpassword/${DB_PASSWORD}/; \
|
||||||
s/ls_dbserver/${DB_SERVER}/; \
|
s/ls_dbserver/${DB_SERVER}/; \
|
||||||
s/ls_database/${DATABASE}/; \
|
s/ls_database/${DATABASE}/; \
|
||||||
|
s/ls_apache_group/${APACHE_GROUP}/; \
|
||||||
s/ls_storageUrlPath/\/${PHP_URL_PREFIX_S}\/storageServer\/var/; \
|
s/ls_storageUrlPath/\/${PHP_URL_PREFIX_S}\/storageServer\/var/; \
|
||||||
s/ls_php_host/${HOSTNAME}/; \
|
s/ls_php_host/${HOSTNAME}/; \
|
||||||
s/ls_php_port/${WWW_PORT}/; \
|
s/ls_php_port/${WWW_PORT}/; \
|
||||||
|
|
|
@ -33,7 +33,8 @@
|
||||||
* storageServer configuration file
|
* storageServer configuration file
|
||||||
*/
|
*/
|
||||||
|
|
||||||
define('LS_VERSION', '1.0');
|
define('LS_VERSION', '1.1');
|
||||||
|
define('PHP5', version_compare( phpversion(), "5.0.0", ">=" ));
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* configuration structure:
|
* configuration structure:
|
||||||
|
@ -84,11 +85,12 @@ $config = array(
|
||||||
'StationPrefsGr'=> 'StationPrefs',
|
'StationPrefsGr'=> 'StationPrefs',
|
||||||
'AllGr' => 'All',
|
'AllGr' => 'All',
|
||||||
'TrashName' => 'trash_',
|
'TrashName' => 'trash_',
|
||||||
'storageDir' => dirname(__FILE__).'/../../storageServer/var/stor',
|
'storageDir' => realpath(dirname(__FILE__).'/../../storageServer/var/stor'),
|
||||||
'bufferDir' => dirname(__FILE__).'/../../storageServer/var/stor/buffer',
|
'bufferDir' => realpath(dirname(__FILE__).'/../../storageServer/var/stor/buffer'),
|
||||||
'transDir' => dirname(__FILE__).'/../../storageServer/var/trans',
|
'transDir' => realpath(dirname(__FILE__).'/../../storageServer/var/trans'),
|
||||||
'accessDir' => dirname(__FILE__).'/../../storageServer/var/access',
|
'accessDir' => realpath(dirname(__FILE__).'/../../storageServer/var/access'),
|
||||||
'pearPath' => 'ls_lib_dir/pear',
|
'pearPath' => 'ls_lib_dir/pear',
|
||||||
|
'cronDir' => realpath(dirname(__FILE__).'/../../storageServer/var/cron'),
|
||||||
'isArchive' => FALSE,
|
'isArchive' => FALSE,
|
||||||
'validate' => TRUE,
|
'validate' => TRUE,
|
||||||
'useTrash' => TRUE,
|
'useTrash' => TRUE,
|
||||||
|
@ -139,10 +141,27 @@ $config = array(
|
||||||
/* ============================================== auxiliary configuration */
|
/* ============================================== auxiliary configuration */
|
||||||
'RootNode' => 'RootNode',
|
'RootNode' => 'RootNode',
|
||||||
'tmpRootPass' => 'q',
|
'tmpRootPass' => 'q',
|
||||||
|
|
||||||
|
/* =================================================== cron configuration */
|
||||||
|
'cronUserName' => 'ls_apache_group',
|
||||||
|
'lockfile' => dirname(__FILE__).'/cron/cron.lock',
|
||||||
|
'cronfile' => dirname(__FILE__).'/cron/croncall.php',
|
||||||
|
'paramdir' => dirname(__FILE__).'/cron/params',
|
||||||
);
|
);
|
||||||
$config['sysSubjs'] = array(
|
$config['sysSubjs'] = array(
|
||||||
'root', $config['AdminsGr'], $config['AllGr'], $config['StationPrefsGr']
|
'root', $config['AdminsGr'], $config['AllGr'], $config['StationPrefsGr']
|
||||||
);
|
);
|
||||||
$old_ip = get_include_path();
|
$old_ip = get_include_path();
|
||||||
set_include_path('.'.PATH_SEPARATOR.$config['pearPath'].PATH_SEPARATOR.$old_ip);
|
set_include_path('.'.PATH_SEPARATOR.$config['pearPath'].PATH_SEPARATOR.$old_ip);
|
||||||
?>
|
|
||||||
|
if(!PHP5){
|
||||||
|
eval('
|
||||||
|
define("FILE_APPEND", TRUE);
|
||||||
|
function file_put_contents($f, $s, $ap=FALSE){
|
||||||
|
$fp=fopen($f, $ap==FILE_APPEND ? "a" : "w");
|
||||||
|
fwrite($fp,$s);
|
||||||
|
fclose($fp);
|
||||||
|
}
|
||||||
|
');
|
||||||
|
}
|
||||||
|
?>
|
Loading…
Add table
Add a link
Reference in a new issue