end
details[:tile_directories].each do |directory|
+ directory "#{directory[:name]}" do
+ owner "www-data"
+ group "www-data"
+ mode 0755
+ end
+
directory[:min_zoom].upto(directory[:max_zoom]) do |zoom|
- directory "#{directory[:name]}/#{zoom}" do
+ directory "#{directory[:name]}/#{zoom}" do
owner "www-data"
group "www-data"
mode 0755
my $lockmgr = LockFile::Simple->make(-autoclean => 1, -max => 0, -warn => 0);
-$lockmgr->lock($tiledir) || exit 0;
+$lockmgr->lock("${tiledir}/cleanup") || exit 0;
my $tempfile = tmpnam();
unlink($tempfile);
-$lockmgr->unlock($tiledir);
+$lockmgr->unlock("${tiledir}/cleanup");
exit 0;