Ticket #2793: install_amp.diff

File install_amp.diff, 0.9 kB (added by errr, 8 months ago)
  • freepbx-2.4.0/install_amp

    old new  
    881881// **** Make sure selinux isn't enabled 
    882882 
    883883outn("Checking for selinux.."); 
    884 $tmpoutput = ''; 
    885 $tmpout = exec("selinuxenabled 2>&1", $tmpoutput, $sereturn); 
    886 if ($sereturn == 0) { 
     884$tmpoutput; 
     885$tmpout = exec("getenforce", $tmpoutput, $sereturn); 
     886if (strtolower($tmpoutput[0]) === "enabled") { 
     887        // this method seems better because disabled and premissive are the same 
     888        // if a user installs and realizes selinux is running the other method  
     889        // requires a reboot to get selinuxenabled to work after editing the  selinux config 
     890        // this will allow you to use setenforce 0 which turns selinux into premissive mode which 
     891        // doesnt enforce, it just warns. 
    887892        fatal("selinux is ENABLED. This is not supported. Please disable selinux before using FreePBX"); 
    888893} 
    889894out("OK"); 
Donate



Support
Download
Develop
Forums
News
Documentation
Paid Support
About

Paid Ads