Esempio n. 1
0
 } catch (Exception $e) {
     echo "FATAL! could not process ini file for Debian {$debianVersion} system\n";
     exit(1);
 }
 if (insertDeb($Debian) === FALSE) {
     echo "FATAL! cannot insert deb line into /etc/apt/sources.list\n";
     exit(1);
 }
 echo "*** Installing fossology ***\n";
 if (!installFossology($Debian)) {
     echo "FATAL! Could not install fossology on {$distros[0]} version {$debianVersion}\n";
     exit(1);
 }
 echo "*** stopping scheduler ***\n";
 // Stop scheduler so system files can be configured.
 $testUtils->stopScheduler();
 echo "*** Tuning kernel ***\n";
 tuneKernel();
 echo "*** Setting up config files ***\n";
 if (configDebian($distros[0], $debianVersion) === FALSE) {
     echo "FATAL! could not configure postgres or php config files\n";
     exit(1);
 }
 /*
 echo "*** Checking apache config ***\n";
 if(!configApache2($distros[0]))
 {
 echo "Fatal, could not configure apache2 to use fossology\n";
 }
 */
 if (!restart('apache2')) {
Esempio n. 2
0
 reportError($error,NULL);
 exit(1);
 }
 */
//TODO: remove all log files as sudo
// Step 2 make clean and make sources
print "Making sources\n";
if ($tonight->makeSrcs() !== TRUE) {
    $error = "There were Errors in the make of the sources examine make.out\n";
    print $error;
    reportError($error, 'make.out');
    exit(1);
}
//try to stop the scheduler before the make install step.
print "Stopping Scheduler before install\n";
if ($tonight->stopScheduler() !== TRUE) {
    $error = "Could not stop fossology-scheduler, maybe it wasn't running?\n";
    print $error;
    reportError($error, NULL);
}
// Step 4 install fossology
print "Installing fossology\n";
if ($tonight->makeInstall() !== TRUE) {
    $error = "There were Errors in the Installation examine make-install.out\n";
    print $error;
    reportError($error, 'mi.out');
    exit(1);
}
// Step 5 run the post install process
/*
for most updates you don't have to remake the db and license cache.  Need to