]> git.openstreetmap.org Git - chef.git/commitdiff
Remove MobileFrontend mediawiki extension from OSMF wiki
authorMichael Glanznig <nebulon42@mailbox.org>
Mon, 30 Apr 2018 07:55:20 +0000 (09:55 +0200)
committerTom Hughes <tom@compton.nu>
Mon, 30 Apr 2018 08:13:47 +0000 (09:13 +0100)
Remove MobileFrontend mediawiki extension from common extensions
and re-add to all wikis except OSMF wiki.

Fixes #159
Closes #160

cookbooks/foundation/recipes/board.rb
cookbooks/foundation/recipes/dwg.rb
cookbooks/foundation/recipes/wiki.rb
cookbooks/mediawiki/resources/site.rb
cookbooks/wiki/recipes/default.rb

index 82012eda9eca1320555dabd6f9177305f5b35137..cf41dcb486fef66c980e529646705d02b195ec33 100644 (file)
@@ -38,6 +38,11 @@ mediawiki_site "board.osmfoundation.org" do
   recaptcha_private_key passwords["board"]["recaptcha"]
 end
 
+mediawiki_extension "MobileFrontend" do
+  site "board.osmfoundation.org"
+  template "mw-ext-MobileFrontend.inc.php.erb"
+end
+
 cookbook_file "/srv/board.osmfoundation.org/Wiki.png" do
   owner node[:mediawiki][:user]
   group node[:mediawiki][:group]
index b19e7cfececf9a9316ce371cd58f95b719b283d8..cb2cca10524e774787df70fb8a728d6acc61397d 100644 (file)
@@ -38,6 +38,11 @@ mediawiki_site "dwg.osmfoundation.org" do
   recaptcha_private_key passwords["dwg"]["recaptcha"]
 end
 
+mediawiki_extension "MobileFrontend" do
+  site "dwg.osmfoundation.org"
+  template "mw-ext-MobileFrontend.inc.php.erb"
+end
+
 cookbook_file "/srv/dwg.osmfoundation.org/Wiki.png" do
   owner node[:mediawiki][:user]
   group node[:mediawiki][:group]
index 0c0bf6a76663979e965decc97c23a28f169032ba..28f5e7fba6bb33fc2abe3cd50a452a76349323b8 100644 (file)
@@ -41,6 +41,11 @@ mediawiki_site "wiki.osmfoundation.org" do
   extra_file_extensions ["mp3"]
 end
 
+mediawiki_extension "MobileFrontend" do
+  action :delete
+  site "board.osmfoundation.org"
+end
+
 mediawiki_skin "osmf" do
   site "wiki.osmfoundation.org"
   repository "git://github.com/openstreetmap/mediawiki-skins-osmf.git"
index 0781de597c0ac43a49ce037168616c9fabe2453c..351ab9dcabed381d3e372d82b6669fdbe3fe81e4 100644 (file)
@@ -430,12 +430,6 @@ action :create do
     action :delete
   end
 
-  mediawiki_extension "MobileFrontend" do
-    site new_resource.site
-    template "mw-ext-MobileFrontend.inc.php.erb"
-    update_site false
-  end
-
   mediawiki_extension "DisableAccount" do
     site new_resource.site
     template "mw-ext-DisableAccount.inc.php.erb"
index d4aa62b20ace5f51ccdc3644c05cc5295fb55396..55eebc2a4983426baadb54825665f0eb5fdf36ef 100644 (file)
@@ -54,6 +54,11 @@ mediawiki_site "wiki.openstreetmap.org" do
   # site_readonly "MAINTENANCE: WIKI READ-ONLY UNTIL Monday 16 May 2016 - 11:00am UTC/GMT."
 end
 
+mediawiki_extension "MobileFrontend" do
+  site "wiki.openstreetmap.org"
+  template "mw-ext-MobileFrontend.inc.php.erb"
+end
+
 cookbook_file "/srv/wiki.openstreetmap.org/osm_logo_wiki.png" do
   owner node[:mediawiki][:user]
   group node[:mediawiki][:group]