Changeset 3927

Show
Ignore:
Timestamp:
04/18/07 08:03:40 (6 years ago)
Author:
diego_iastrubni
Message:
  • no need to store the asterisk version in a file (we can deal with it pretty good by now, by calling the manager or directly parsing "asterisk -V")
  • no need to store the freepbx version on the filesystem. it's not used anywhere, and it's already available on the sql.

fixes ticket:1679

Files:

Legend:

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

    r3926 r3927  
    902902 
    903903 
    904 // **** Write asterisk version to ASTETCDIR/version 
    905  
    906 $tmpoutput = ''; 
    907 $tmpout = exec("asterisk -V", $tmpoutput, $exitcode); 
    908 if ($exitcode != 0) { 
    909   fatal("Error executing asterisk: be sure Asterisk is installed and in the path"); 
    910 } 
    911 if (!$fd = fopen($amp_conf['ASTETCDIR'].'/version','w')) { 
    912   fatal('Cannot open '.$amp_conf['ASTETCDIR'].'/version for writing'); 
    913 } 
    914 fwrite($fd, $tmpout); 
    915 fclose($fd); 
    916904// change to read-only 
    917905chmod($amp_conf['ASTETCDIR'].'/version',0444); 
     
    11331121out("OK"); 
    11341122 
    1135 $version = install_getversion(); 
    1136 $filename = $amp_conf["AMPWEBROOT"]."/admin/version.txt"; 
    1137 if (!$fd = fopen($filename, "w")) { 
    1138   fatal("Could not open ".$filename." for writing"); 
    1139 } 
    1140 fwrite($fd, $version); 
    1141 fclose($fd); 
    1142  
    1143  
    1144  
    11451123// **** Set reload flag for AMP admin 
    11461124install_needreload();