X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/b4f387dd6b51418fc830b25acfafceb7e75fe1d0..1cb6635911ae9d6feab1c8efc7d4c33380169cd5:/cookbooks/mediawiki/resources/extension.rb diff --git a/cookbooks/mediawiki/resources/extension.rb b/cookbooks/mediawiki/resources/extension.rb index 6093bdbe9..b97fb7d33 100644 --- a/cookbooks/mediawiki/resources/extension.rb +++ b/cookbooks/mediawiki/resources/extension.rb @@ -28,15 +28,15 @@ 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 :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