Changeset 3980

Show
Ignore:
Timestamp:
05/12/07 23:32:29 (6 years ago)
Author:
p_lindheimer
Message:

revert r3927 related to #1679 - breaking install_amp

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • freepbx/trunk/install_amp

    r3936 r3980  
    908908 
    909909 
     910// **** Write asterisk version to ASTETCDIR/version 
     911 
     912$tmpoutput = ''; 
     913$tmpout = exec("asterisk -V", $tmpoutput, $exitcode); 
     914if ($exitcode != 0) { 
     915  fatal("Error executing asterisk: be sure Asterisk is installed and in the path"); 
     916} 
     917if (!$fd = fopen($amp_conf['ASTETCDIR'].'/version','w')) { 
     918  fatal('Cannot open '.$amp_conf['ASTETCDIR'].'/version for writing'); 
     919} 
     920fwrite($fd, $tmpout); 
     921fclose($fd); 
    910922// change to read-only 
    911923chmod($amp_conf['ASTETCDIR'].'/version',0444); 
     
    11291141out("OK"); 
    11301142 
     1143$version = install_getversion(); 
     1144$filename = $amp_conf["AMPWEBROOT"]."/admin/version.txt"; 
     1145if (!$fd = fopen($filename, "w")) { 
     1146  fatal("Could not open ".$filename." for writing"); 
     1147} 
     1148fwrite($fd, $version); 
     1149fclose($fd); 
     1150 
     1151 
     1152 
    11311153// **** Set reload flag for AMP admin 
    11321154install_needreload();