]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/mediawiki/resources/extension.rb
Make sure cgimap uses the writable database for updates
[chef.git] / cookbooks / mediawiki / resources / extension.rb
index 152e843d381ca1ac513ccd084f0f3fb3dabddfc9..1803c04f0c1913d6b78cceec2304a4ff283fd5d8 100644 (file)
@@ -75,14 +75,11 @@ action :create do
       variables new_resource.variables
     end
   else
       variables new_resource.variables
     end
   else
-    extension_script = "#{extension_directory}/#{new_resource.extension}.php"
-
     file "#{mediawiki_directory}/LocalSettings.d/Ext-#{new_resource.extension}.inc.php" do
       content "<?php wfLoadExtension( '#{new_resource.extension}' );\n"
       user node[:mediawiki][:user]
       group node[:mediawiki][:group]
       mode 0o664
     file "#{mediawiki_directory}/LocalSettings.d/Ext-#{new_resource.extension}.inc.php" do
       content "<?php wfLoadExtension( '#{new_resource.extension}' );\n"
       user node[:mediawiki][:user]
       group node[:mediawiki][:group]
       mode 0o664
-      only_if { ::File.exist?(extension_script) }
     end
   end
 
     end
   end