Make sure work directory is world-searchable
authorMarius Gavrilescu <marius@ieval.ro>
Tue, 3 Feb 2015 13:42:58 +0000 (15:42 +0200)
committerMarius Gavrilescu <marius@ieval.ro>
Tue, 3 Feb 2015 13:42:58 +0000 (15:42 +0200)
lib/Gruntmaster/Daemon.pm

index 07b6fb6..1e5d8b2 100644 (file)
@@ -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.025337 seconds and 4 git commands to generate.