Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

add umask to apache2/envvars to fix webdav permissions

  • Loading branch information...
commit 6413bfda0f3e2520864ef024b1185278d7cbad8e 1 parent 9c9d796
@henningthies henningthies authored
Showing with 8 additions and 0 deletions.
  1. +8 −0 apache2.rb
View
8 apache2.rb
@@ -189,6 +189,14 @@ def disable_mod(mod)
dep 'webdav authorization tools' do
requires "libapache2-mod-authz-unixgroup.managed", "pwauth.managed", "pwauth unixgroup", "authnz_external enabled.apache2"
+
+ met? {
+ !sudo('cat /etc/apache2/envvars').split("\n").grep(/protonet-webdav-umask/).empty?
+ }
+ meet {
+ umask = "umask u=rwx,g=rwx,o="
+ append_to_file_with_section umask, "/etc/apache2/envvars", 'protonet-webdav-umask', {:sudo => true}
+ }
end
dep 'apache2 runs on boot' do
Please sign in to comment.
Something went wrong with that request. Please try again.