mode 0755
end
+template "/etc/sudoers.d/tile" do
+ source "sudoers.erb"
+ owner "root"
+ group "root"
+ mode 0440
+end
+
directory "/var/lib/replicate" do
owner "tile"
group "tile"
<% end -%>
# Expire tiles which are touched by the changes
- /usr/local/bin/expire-tiles ${file} > /dev/null 2>&1 &
+ sudo -u www-data /usr/local/bin/expire-tiles ${file} > /dev/null 2>&1 &
fi
# Delete old downloads
--- /dev/null
+# DO NOT EDIT - This file is being maintained by Chef
+
+# Allow the replication service to expire tiles
+tile ALL=(www-data) NOPASSWD: /usr/local/bin/expire-tiles