projects
/
gruntmaster-daemon.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make sure work directory is world-searchable
[gruntmaster-daemon.git]
/
lib
/
Gruntmaster
/
Daemon.pm
diff --git
a/lib/Gruntmaster/Daemon.pm
b/lib/Gruntmaster/Daemon.pm
index ed2415812c0b61537fb97ede9420789195afb74a..1e5d8b2874ceb3cf3a1e24defc47c84d535cab45 100644
(file)
--- a/
lib/Gruntmaster/Daemon.pm
+++ b/
lib/Gruntmaster/Daemon.pm
@@
-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.009489 seconds
and
4
git commands to generate.