X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/b4f387dd6b51418fc830b25acfafceb7e75fe1d0..1fcdb60994e181c758ebda4f5ccfc4e2280d8f0c:/cookbooks/mediawiki/resources/extension.rb?ds=sidebyside diff --git a/cookbooks/mediawiki/resources/extension.rb b/cookbooks/mediawiki/resources/extension.rb index 6093bdbe9..c567ee507 100644 --- a/cookbooks/mediawiki/resources/extension.rb +++ b/cookbooks/mediawiki/resources/extension.rb @@ -28,15 +28,16 @@ attribute :variables, :kind_of => Hash, :default => {} attribute :version, :kind_of => String attribute :repository, :kind_of => String attribute :tag, :kind_of => String -attribute :update_site, :kind_of => [TrueClass, FalseClass], :default => false +attribute :reference, :kind_of => String +attribute :update_site, :kind_of => [TrueClass, FalseClass], :default => true def after_created if update_site - notifies :update, "mediawik_site[site]" + notifies :update, "mediawiki_site[#{site}]" else site_directory = node[:mediawiki][:sites][site][:directory] - notifies :create, "template[#{site_directory}/LocalSettings.php]" - notifies :run, "execute[#{site_directory}/maintenance/update.php]" + notifies :create, "template[#{site_directory}/w/LocalSettings.php]" + notifies :run, "execute[#{site_directory}/w/maintenance/update.php]" end end