Reverting changes "$rp = file_exists" back to "$rp = realpath", because it does not function for hardy and effecting gutsy with errors as well.
This commit is contained in:
parent
4d786f8cdd
commit
47c34aa312
|
@ -168,7 +168,7 @@ if (!is_null($this_file)) {
|
|||
|
||||
// make dirpaths better (without "../")
|
||||
foreach (array('storageDir', 'bufferDir', 'transDir', 'accessDir', 'pearPath', 'cronDir') as $d) {
|
||||
$rp = file_exists($CC_CONFIG[$d]);
|
||||
$rp = realpath($CC_CONFIG[$d]);
|
||||
// workaround for missing dirs
|
||||
// if ( $rp === FALSE ) {
|
||||
// mkdir( $CC_CONFIG[$d] );
|
||||
|
|
|
@ -144,7 +144,7 @@ set_include_path('.'.PATH_SEPARATOR.$CC_CONFIG['pearPath'].PATH_SEPARATOR.$old_i
|
|||
|
||||
// make dirpaths better (without ../)
|
||||
foreach (array('storageDir', 'bufferDir', 'transDir', 'accessDir', 'pearPath', 'cronDir') as $d) {
|
||||
$rp = file_exists($CC_CONFIG[$d]);
|
||||
$rp = realpath($CC_CONFIG[$d]);
|
||||
// workaround for missing dirs
|
||||
if ( $rp === FALSE ) {
|
||||
mkdir( $CC_CONFIG[$d] );
|
||||
|
|
|
@ -45,14 +45,14 @@ if (!camp_db_table_exists($CC_CONFIG['prefTable'])) {
|
|||
// Install storage directories
|
||||
//------------------------------------------------------------------------
|
||||
foreach (array('storageDir', 'bufferDir', 'transDir', 'accessDir', 'pearPath', 'cronDir') as $d) {
|
||||
$rp = file_exists($CC_CONFIG[$d]);
|
||||
$rp = realpath($CC_CONFIG[$d]);
|
||||
if ( $rp === FALSE ) {
|
||||
echo " * Creating directory ".$CC_CONFIG[$d]."...";
|
||||
mkdir($CC_CONFIG[$d], 02775);
|
||||
echo "done.\n";
|
||||
$rp = realpath($CC_CONFIG[$d]);
|
||||
} else {
|
||||
echo " * Skipping: directory already exists: ".$CC_CONFIG[$d]."\n";
|
||||
echo " * Skipping: directory already exists: $rp\n";
|
||||
}
|
||||
$CC_CONFIG[$d] = $rp;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue