projects
/
gruntmaster-daemon.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
1e5f2b8
)
Make sure work directory is world-searchable
author
Marius Gavrilescu
<marius@ieval.ro>
Tue, 3 Feb 2015 13:42:58 +0000
(15:42 +0200)
committer
Marius Gavrilescu
<marius@ieval.ro>
Tue, 3 Feb 2015 13:42:58 +0000
(15:42 +0200)
lib/Gruntmaster/Daemon.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/Gruntmaster/Daemon.pm
b/lib/Gruntmaster/Daemon.pm
index 07b6fb6ca0c0e1a0fb6e75538e645057f7b7fb9c..1e5d8b2874ceb3cf3a1e24defc47c84d535cab45 100644
(file)
--- a/
lib/Gruntmaster/Daemon.pm
+++ b/
lib/Gruntmaster/Daemon.pm
@@
-165,7
+165,9
@@
sub run{
$db = Gruntmaster::Data->connect($ENV{GRUNTMASTER_DSN} // 'dbi:Pg:');
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;
This page took
0.011247 seconds
and
4
git commands to generate.