Changeset 8428
- Timestamp:
- 11/29/09 05:43:22 (3 years ago)
- Files:
-
- freepbx/branches/2.6/install_amp (modified) (10 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
freepbx/branches/2.6/install_amp
r8339 r8428 106 106 107 107 if (!function_exists('version_compare_freepbx')) { 108 /* ver ison_compare that works with freePBX version numbers108 /* version_compare that works with freePBX version numbers 109 109 */ 110 110 function version_compare_freepbx($version1, $version2, $op = null) { … … 127 127 out(" --password <pass> Use <pass> to connect to db and write config"); 128 128 out(" --fopwebroot <path> Web path where fop will be installed"); 129 out(" --webroot <path> Web root where freepbxwill be installed");129 out(" --webroot <path> Web root where FreePBX will be installed"); 130 130 out(" --cgibin <path> Path where cgi-bin's lives"); 131 131 out(" --bin <path> Path of asterisk binaries"); … … 281 281 282 282 out("Generating Configurations.conf, (if Asterisk is not running, you will get an error"); 283 out("In case of error, start Asterisk and hit the red bar in the GUI to generate the Configura ions.conf files");283 out("In case of error, start Asterisk and hit the red bar in the GUI to generate the Configurations.conf files"); 284 284 if (!$dryrun) 285 285 // added --run-install to make it work like it has been working since retrieve_conf changed to not run module install scripts by default … … 495 495 /** Set the module version number to the packaged version and enable 496 496 * module must require not install.php or install.sql script 497 * this is primarily to package core and framework with freepbxtarballs497 * this is primarily to package core and framework with FreePBX tarballs 498 498 * 499 499 */ … … 512 512 $version = $matches[1]; 513 513 } else { 514 fatal("ERROR: $file_path found but no ver ison information");514 fatal("ERROR: $file_path found but no version information"); 515 515 } 516 516 } else { … … 520 520 // If we didn't return above, then we found the package as part of the install 521 521 // tarball and want to update the version info since this might be overwriting 522 // an existing install that has a newe ver version.522 // an existing install that has a newer version. 523 523 // 524 524 $sql = "SELECT version FROM modules WHERE modulename = '$module'"; … … 533 533 } else if ($result[0] != $version) { 534 534 if (version_compare_freepbx($version, $result[0], "gt")) { 535 // if new ver ison is greater than old, then we disable the module and it will get enabled next when installed535 // if new version is greater than old, then we disable the module and it will get enabled next when installed 536 536 // 537 537 $sql = "UPDATE modules SET version = '$version', enabled = 0 WHERE modulename = '$module'"; … … 848 848 out("OK"); 849 849 850 /* deprecated on freepbx2.2, from now pages need to read this information850 /* deprecated on FreePBX 2.2, from now pages need to read this information 851 851 from $asterik_conf and not $amp_conf. 852 852 … … 888 888 $verinfo = $tmpout; 889 889 890 // **** Check asterisk ver ison890 // **** Check asterisk version 891 891 // Set the 'engine' to be 'asterisk14' if using asterisk 1.4, otherwise 892 892 // 'asterisk' … … 933 933 $tmpout = exec("getenforce", $tmpoutput, $sereturn); 934 934 if (strtolower($tmpoutput[0]) === "enabled") { 935 // this method seems better because disabled and p remissive are the same935 // this method seems better because disabled and permissive are the same 936 936 // if a user installs and realizes selinux is running the other method 937 937 // requires a reboot to get selinuxenabled to work after editing the selinux config 938 // this will allow you to use setenforce 0 which turns selinux into p remissive mode which938 // this will allow you to use setenforce 0 which turns selinux into permissive mode which 939 939 // doesnt enforce, it just warns. 940 940 fatal("selinux is ENABLED. This is not supported. Please disable selinux before using FreePBX");
