Esempio n. 1
0
}
// 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
add a -d for turning it off.
*/
print "Running fo-postinstall\n";
$iRes = $tonight->foPostinstall();
print "install results are:{$iRes}\n";
if ($iRes !== TRUE) {
    $error = "There were errors in the postinstall process check fop.out\n";
    print $error;
    print "calling reportError\n";
    reportError($error, 'fop.out');
    exit(1);
}
// Step 6 run the scheduler test to make sure everything is clean
print "Starting Scheduler Test\n";
if ($tonight->schedulerTest() !== TRUE) {
    $error = "Error! in scheduler test examine ST.out\n";
    print $error;
    reportError($error, 'ST.out');
    exit(1);