mirror of https://github.com/BOINC/boinc.git
Merge branch 'master' of ssh://isaac.ssl.berkeley.edu/boinc-v2
This commit is contained in:
commit
fbe578ad6e
|
@ -22,7 +22,6 @@
|
||||||
// my developing your own stylesheet
|
// my developing your own stylesheet
|
||||||
// and customizing the header/footer functions in html/project/project.inc
|
// and customizing the header/footer functions in html/project/project.inc
|
||||||
|
|
||||||
require_once("../inc/db.inc");
|
|
||||||
require_once("../inc/util.inc");
|
require_once("../inc/util.inc");
|
||||||
require_once("../inc/news.inc");
|
require_once("../inc/news.inc");
|
||||||
require_once("../inc/cache.inc");
|
require_once("../inc/cache.inc");
|
||||||
|
@ -182,7 +181,6 @@ if ($stopped) {
|
||||||
Please try again later</b>.
|
Please try again later</b>.
|
||||||
";
|
";
|
||||||
} else {
|
} else {
|
||||||
db_init();
|
|
||||||
show_nav();
|
show_nav();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -317,8 +317,7 @@ if ($xml) {
|
||||||
";
|
";
|
||||||
}
|
}
|
||||||
|
|
||||||
$retval = db_init_aux();
|
if (BoincDB::get_aux(true) == null) {
|
||||||
if ($retval) {
|
|
||||||
echo tra("The database server is not accessible");
|
echo tra("The database server is not accessible");
|
||||||
} else {
|
} else {
|
||||||
if (!$xml) {
|
if (!$xml) {
|
||||||
|
@ -369,7 +368,6 @@ if ($retval) {
|
||||||
$gap = unserialize(get_cached_data(STATUS_PAGE_TTL, "transitioner_backlog"));
|
$gap = unserialize(get_cached_data(STATUS_PAGE_TTL, "transitioner_backlog"));
|
||||||
if ($gap === false) {
|
if ($gap === false) {
|
||||||
$min = BoincDB::get()->lookup_fields("workunit", "stdClass", "MIN(transition_time) as min", "TRUE");
|
$min = BoincDB::get()->lookup_fields("workunit", "stdClass", "MIN(transition_time) as min", "TRUE");
|
||||||
//$gap = BoincDB::get()->min("workunit", "transition_time"); $gap = time()-$gap/3600;
|
|
||||||
$gap = (time() - $min->min)/3600;
|
$gap = (time() - $min->min)/3600;
|
||||||
if (($gap < 0) || ($min->min == 0)) {
|
if (($gap < 0) || ($min->min == 0)) {
|
||||||
$gap = 0;
|
$gap = 0;
|
||||||
|
|
|
@ -109,9 +109,12 @@ int main(int argc, char *argv[])
|
||||||
// Expand the installer package
|
// Expand the installer package
|
||||||
system("rm -dfR /tmp/BOINC.pkg");
|
system("rm -dfR /tmp/BOINC.pkg");
|
||||||
system("rm -dfR /tmp/expanded_BOINC.pkg");
|
system("rm -dfR /tmp/expanded_BOINC.pkg");
|
||||||
sprintf(temp, "pkgutil --expand \"%s\" /tmp/expanded_BOINC.pkg", pkgPath);
|
|
||||||
err = system(temp);
|
if (compareOSVersionTo(10, 9) < 0) {
|
||||||
|
sprintf(temp, "pkgutil --expand \"%s\" /tmp/expanded_BOINC.pkg", pkgPath);
|
||||||
|
err = system(temp);
|
||||||
|
}
|
||||||
|
|
||||||
if (err == noErr) {
|
if (err == noErr) {
|
||||||
GetPreferredLanguages();
|
GetPreferredLanguages();
|
||||||
}
|
}
|
||||||
|
@ -201,6 +204,10 @@ Boolean IsRestartNeeded()
|
||||||
uid_t boinc_master_uid = 0, boinc_project_uid = 0;
|
uid_t boinc_master_uid = 0, boinc_project_uid = 0;
|
||||||
char loginName[256];
|
char loginName[256];
|
||||||
|
|
||||||
|
if (compareOSVersionTo(10, 9) >= 0) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
grp = getgrnam(boinc_master_group_name);
|
grp = getgrnam(boinc_master_group_name);
|
||||||
if (grp == NULL)
|
if (grp == NULL)
|
||||||
return true; // Group boinc_master does not exist
|
return true; // Group boinc_master does not exist
|
||||||
|
|
Loading…
Reference in New Issue