Skip to content

Commit

Permalink
add umask to apache2/envvars to fix webdav permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
henningthies committed Jul 3, 2012
1 parent 9c9d796 commit 6413bfd
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions apache2.rb
Expand Up @@ -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
Expand Down

0 comments on commit 6413bfd

Please sign in to comment.