X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/d0a6dd09b9cd9d1c493c15adfd25b880f505e9af..d054b1902c58aeda444f9c574e46c7638a65544e:/cookbooks/mediawiki/providers/extension.rb?ds=sidebyside diff --git a/cookbooks/mediawiki/providers/extension.rb b/cookbooks/mediawiki/providers/extension.rb index 33f7ad221..e0eefa245 100644 --- a/cookbooks/mediawiki/providers/extension.rb +++ b/cookbooks/mediawiki/providers/extension.rb @@ -30,14 +30,16 @@ action :create do source new_resource.source owner node[:mediawiki][:user] group node[:mediawiki][:group] - mode 0755 + mode 0o755 files_owner node[:mediawiki][:user] files_group node[:mediawiki][:group] - files_mode 0755 + files_mode 0o755 end else extension_repository = new_resource.repository || default_repository - extension_reference = if new_resource.tag + extension_reference = if new_resource.reference + new_resource.reference + elsif new_resource.tag "refs/tags/#{new_resource.tag}" else "REL#{extension_version}".tr(".", "_") @@ -60,7 +62,7 @@ action :create do source new_resource.template user node[:mediawiki][:user] group node[:mediawiki][:group] - mode 0664 + mode 0o664 variables new_resource.variables end else @@ -71,7 +73,7 @@ action :create do content "