X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/1e254e4af9e9eead1e3f5eae38079ac373df3909..ea0715b4be41a1d1600bba7a1f5d0b988708579f:/cookbooks/mediawiki/definitions/mediawiki_extension.rb diff --git a/cookbooks/mediawiki/definitions/mediawiki_extension.rb b/cookbooks/mediawiki/definitions/mediawiki_extension.rb index c5d1ec856..764a59832 100644 --- a/cookbooks/mediawiki/definitions/mediawiki_extension.rb +++ b/cookbooks/mediawiki/definitions/mediawiki_extension.rb @@ -56,11 +56,11 @@ define :mediawiki_extension, :action => [:enable], :variables => {} do user node[:mediawiki][:user] group node[:mediawiki][:group] ignore_failure repository.start_with?("git://github.com/wikimedia/mediawiki-extensions") - notifies :run, resources(:execute => "#{mediawiki_directory}/maintenance/update.php") + notifies :run, "execute[#{mediawiki_directory}/maintenance/update.php]" end end - if template + if template # ~FC023 template "#{mediawiki_directory}/LocalSettings.d/Ext-#{name}.inc.php" do cookbook "mediawiki" source template @@ -68,7 +68,7 @@ define :mediawiki_extension, :action => [:enable], :variables => {} do group node[:mediawiki][:group] mode 0664 variables template_variables - notifies :create, resources(:template => "#{mediawiki_directory}/LocalSettings.php") + notifies :create, "template[#{mediawiki_directory}/LocalSettings.php]" end end @@ -79,6 +79,6 @@ define :mediawiki_extension, :action => [:enable], :variables => {} do mode 0664 content " "#{mediawiki_directory}/LocalSettings.php") + notifies :create, "template[#{mediawiki_directory}/LocalSettings.php]" end end