Install custom skin in OSMF wiki
authorTom Hughes <tom@compton.nu>
Sat, 13 Dec 2014 15:40:43 +0000 (15:40 +0000)
committerTom Hughes <tom@compton.nu>
Sat, 13 Dec 2014 15:43:32 +0000 (15:43 +0000)
cookbooks/foundation/recipes/wiki.rb

index 661afb3..d732df8 100644 (file)
@@ -27,6 +27,7 @@ mediawiki_site  "wiki.osmfoundation.org" do
   database_name "osmf-wiki"
   database_username "osmf-wikiuser"
   database_password passwords["wiki"]["database"]
+  skin "osmf"
   logo "/Wiki.png"
   email_contact "webmaster@openstreetmap.org"
   email_sender "webmaster@openstreetmap.org"
@@ -38,3 +39,27 @@ cookbook_file "/srv/wiki.osmfoundation.org/Wiki.png" do
   group node[:mediawiki][:group]
   mode 0644
 end
+
+subversion "/srv/wiki.osmfoundation.org/w/skins/osmf-skin" do
+  repository "http://svn.openstreetmap.org/extensions/mediawiki/osmf"
+  user node[:mediawiki][:user]
+  group node[:mediawiki][:group]
+end
+
+link "/srv/wiki.osmfoundation.org/w/skins/osmf" do
+  to "osmf-skin/osmf"
+  owner node[:mediawiki][:user]
+  group node[:mediawiki][:group]
+end
+
+link "/srv/wiki.osmfoundation.org/w/skins/osmf.deps.php" do
+  to "osmf-skin/osmf.deps.php"
+  owner node[:mediawiki][:user]
+  group node[:mediawiki][:group]
+end
+
+link "/srv/wiki.osmfoundation.org/w/skins/osmf.php" do
+  to "osmf-skin/osmf.php"
+  owner node[:mediawiki][:user]
+  group node[:mediawiki][:group]
+end