projects
/
gruntmaster-daemon.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use problem->is_private instead of problem->private
[gruntmaster-daemon.git]
/
lib
/
Gruntmaster
/
Daemon.pm
diff --git
a/lib/Gruntmaster/Daemon.pm
b/lib/Gruntmaster/Daemon.pm
index ed2415812c0b61537fb97ede9420789195afb74a..880c0da49a47c1cf8915f952234b6c2609573e38 100644
(file)
--- a/
lib/Gruntmaster/Daemon.pm
+++ b/
lib/Gruntmaster/Daemon.pm
@@
-141,7
+141,7
@@
sub process{
problem => $jobr->problem,
owner => $jobr->owner,
job => $jobr->id,
problem => $jobr->problem,
owner => $jobr->owner,
job => $jobr->id,
- solved => $solved}) if !$jobr->problem->private;
+ solved => $solved}) if !$jobr->problem->
is_
private;
}
sub got_job{
}
sub got_job{
@@
-161,12
+161,13
@@
sub got_job{
}
sub run{
}
sub run{
- warn "No GRUNTMASTER_VM environment variable. Running without a VM is a security risk.\n" unless $ENV{GRUNTMASTER_VM};
require Gruntmaster::Data;
require Gruntmaster::Data;
- $db = Gruntmaster::Data->connect('dbi:Pg:');
+ $db = Gruntmaster::Data->connect(
$ENV{GRUNTMASTER_DSN} //
'dbi:Pg:');
Log::Log4perl->init('/etc/gruntmasterd/gruntmasterd-log.conf');
get_logger->info("gruntmasterd $VERSION started");
Log::Log4perl->init('/etc/gruntmasterd/gruntmasterd-log.conf');
get_logger->info("gruntmasterd $VERSION started");
- chdir tempdir 'gruntmasterd.XXXX', CLEANUP => 1, TMPDIR => 1;
+ my $dir = tempdir 'gruntmasterd.XXXX', CLEANUP => 1, TMPDIR => 1;
+ chmod 0711, $dir;
+ chdir $dir;
while (1) {
my $job = $db->jobs->search({daemon => undef}, {rows => 1})->first;
got_job $job if defined $job;
while (1) {
my $job = $db->jobs->search({daemon => undef}, {rows => 1})->first;
got_job $job if defined $job;
This page took
0.010326 seconds
and
4
git commands to generate.