X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/66cfdd2bef9b3b0b36bbadf42563a6e4a35f29d6..571e5982cc82c4fbefff0d463895a029a68921fe:/cookbooks/mediawiki/resources/site.rb?ds=sidebyside diff --git a/cookbooks/mediawiki/resources/site.rb b/cookbooks/mediawiki/resources/site.rb index 476ce1699..0bbddfe81 100644 --- a/cookbooks/mediawiki/resources/site.rb +++ b/cookbooks/mediawiki/resources/site.rb @@ -23,7 +23,6 @@ default_action :create property :site, :kind_of => String, :name_property => true property :aliases, :kind_of => [String, Array] -property :directory, :kind_of => String property :version, :kind_of => String, :default => "1.39" property :database_name, :kind_of => String, :required => true property :database_user, :kind_of => String, :required => [:create, :update] @@ -163,11 +162,6 @@ action :create do only_if { ::File.exist?("#{mediawiki_directory}/LocalSettings.php") } end - service "mediawiki-refresh-links@#{new_resource.site}.timer" do - action [:enable, :start] - only_if { ::File.exist?("#{mediawiki_directory}/LocalSettings.php") } - end - template "/etc/cron.daily/mediawiki-#{cron_name}-backup" do cookbook "mediawiki" source "mediawiki-backup.cron.erb" @@ -344,10 +338,10 @@ action :create do update_site false end + # Extension has been archived: https://www.mediawiki.org/wiki/Extension:LocalisationUpdate mediawiki_extension "LocalisationUpdate" do site new_resource.site - template "mw-ext-LocalisationUpdate.inc.php.erb" - update_site false + action :delete end # mediawiki_extension "Translate" do @@ -560,7 +554,7 @@ action_class do include OpenStreetMap::Mixin::PersistentToken def site_directory - new_resource.directory || "/srv/#{new_resource.site}" + "/srv/#{new_resource.site}" end def mediawiki_reference