Changeset 3927 for freepbx/trunk/install_amp
- Timestamp:
- 04/18/07 08:03:40 (6 years ago)
- Files:
-
- freepbx/trunk/install_amp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
freepbx/trunk/install_amp
r3926 r3927 902 902 903 903 904 // **** Write asterisk version to ASTETCDIR/version905 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);916 904 // change to read-only 917 905 chmod($amp_conf['ASTETCDIR'].'/version',0444); … … 1133 1121 out("OK"); 1134 1122 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 1145 1123 // **** Set reload flag for AMP admin 1146 1124 install_needreload();
