Changeset 9372 for freepbx

Show
Ignore:
Timestamp:
03/24/10 18:07:05 (3 years ago)
Author:
p_lindheimer
Message:

more tweaks to install script to avoid confusing warnings re #4158

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • freepbx/branches/2.7/install_amp

    r9367 r9372  
    10361036  $md5sums = read_md5_file(UPGRADE_DIR."/".$version.".md5"); 
    10371037  list($num_files, $num_copied) = recursive_copy("amp_conf", "", $md5sums); 
    1038   // link the packed js library for ARI, if there the error will indicate that 
    1039   link($amp_conf['AMPWEBROOT'].'/admin/common/libfreepbx.javascripts.js',$amp_conf['AMPWEBROOT'].'/recordings/theme/js'); 
    10401038  if (!is_file("/etc/asterisk/voicemail.conf")) copy("/etc/asterisk/voicemail.conf.template","/etc/asterisk/voicemail.conf"); 
    10411039  if (!is_dir("/var/spool/asterisk/voicemail/device")) amp_mkdir("/var/spool/asterisk/voicemail/device", "0755", true); 
    10421040  out("OK (".$num_copied." files copied, ".($num_files-$num_copied)." skipped)"); 
     1041 
     1042  // link the packed js library for ARI, if there the error will indicate that 
     1043  $libfreepbx = $amp_conf['AMPWEBROOT'].'/admin/common/libfreepbx.javascripts.js'; 
     1044  $dest_libfreepbx = $amp_conf['AMPWEBROOT'].'/recordings/theme/js/libfreepbx.javascripts.js';  
     1045  if (file_exists($libfreepbx) && !file_exists($dest_libfreepbx)) { 
     1046    outn(_("linking libfreepbx.javascripts.js to theme/js..")); 
     1047    if (link($libfreepbx, $dest_libfreepbx)) { 
     1048      out(_("ok")); 
     1049    } else { 
     1050      out(_("possible error - check warning message")); 
     1051    } 
     1052  } 
    10431053} 
    10441054