Example #1
0
       echo "Erorr! Could not start fossology, please restart by hand\n";
       exit(1);
     }
     */
     break;
 case 'Fedora':
     $fedora = 'Fedora';
     $fedVersion = $distros[2];
     try {
         $Fedora = new ConfigSys($fedora, $fedVersion);
     } catch (Exception $e) {
         echo "FATAL! could not process ini file for Fedora {$fedVersion} system\n";
         echo $e;
         exit(1);
     }
     if (!configYum($Fedora)) {
         echo "FATAL! could not install fossology.repo yum configuration file\n";
         exit(1);
         break;
     }
     echo "*** Installing fossology ***\n";
     if (!installFossology($Fedora)) {
         echo "FATAL! Could not install fossology on {$fedora} version {$fedVersion}\n";
         exit(1);
     }
     echo "*** stopping scheduler ***\n";
     // Stop scheduler so system files can be configured.
     //$testUtils->stopScheduler();
     /*
     echo "*** Tuning kernel ***\n";
     tuneKernel();
Example #2
0
     if (!stop('iptables')) {
         echo "Erorr! Could not stop Firewall, please stop by hand\n";
         exit(1);
     }
     break;
 case 'Fedora':
     $fedora = 'Fedora';
     $fedVersion = $distros[2];
     try {
         $Fedora = new ConfigSys($fedora, $fedVersion, $Migrate);
     } catch (Exception $e) {
         echo "FATAL! could not process ini file for Fedora {$fedVersion} system\n";
         echo $e;
         exit(1);
     }
     if (!configYum($Fedora, $Migrate)) {
         echo "FATAL! could not install fossology.repo yum configuration file\n";
         exit(1);
         break;
     }
     echo "*** Installing fossology ***\n";
     if (!installFossology($Fedora, $Migrate)) {
         echo "FATAL! Could not install fossology on {$fedora} version {$fedVersion}\n";
         exit(1);
     }
     echo "*** stopping scheduler ***\n";
     $last = exec("systemctl stop iptables.service", $out, $rtn);
     if ($rtn != 0) {
         echo "Erorr! Could not stop Firewall, please stop by hand\n";
         exit(1);
     }