Changeset 10008

Show
Ignore:
Timestamp:
06/30/10 17:59:17 (3 years ago)
Author:
p_lindheimer
Message:

fixes #4388 rename files that will be symlinked since they can end up there from install_amp

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/branches/2.8/fw_fop/install.php

    r9488 r10008  
    8484 * fw_fop install script 
    8585 */ 
     86 
    8687  $bin_source = dirname(__FILE__)."/bin/*"; 
    8788  $bin_dest = $amp_conf['AMPBIN']; 
     89 
     90  // These files may get installed from a tarball install. If found and not a symlink to here, 
     91  // then rename it for a backup copy 
     92  // 
     93  $del_array = array("retrieve_op_conf_from_mysql.php"); 
     94  foreach ($del_array as $target) { 
     95    $file = $bin_dest.'/'.$target;  
     96    $count=0; 
     97    $max_count=1000; 
     98    if (is_file($file) & !is_link($file)) { 
     99      outn(_("renaming $target so it can be symlinked..")); 
     100      while (is_file($file.".".$count)) { 
     101        $count++; 
     102        if ($count > $max_count) { 
     103          break; 
     104        } 
     105      } 
     106      if ($count > $max_count || !rename($file,$file.".".$count)) { 
     107        out(_("failed")); 
     108      } else { 
     109        out(_("ok")); 
     110      } 
     111    } 
     112  } 
    88113 
    89114  $htdocs_panel_source = dirname(__FILE__)."/htdocs_panel/*"; 
  • modules/branches/2.8/fw_fop/module.xml

    r9987 r10008  
    22  <rawname>fw_fop</rawname> 
    33  <name>FreePBX FOP Framework</name> 
    4   <version>2.8.0.2</version> 
     4  <version>2.8.0.3</version> 
    55  <publisher>FreePBX</publisher> 
    66  <license>GPLv2+</license> 
     
    88  <canuninstall>no</canuninstall> 
    99  <changelog> 
     10    *2.8.0.3* #4388 
    1011    *2.8.0.2* #4381 
    1112    *2.8.0.1* #4269, remove uninitialized variable