RewriteCond %{REQUEST_URI} !^/value/
RewriteCond %{REQUEST_URI} !^/reference/
RewriteCond %{REQUEST_URI} !^/prop/
+ RewriteCond %{REQUEST_URI} !^/dump/
RewriteCond %{REQUEST_URI} !^/server-status
RewriteCond %{REQUEST_URI} !^/.well-known/
RewriteCond %{LA-U:REQUEST_FILENAME} !-f
php_admin_flag engine off
</Directory>
+ <Directory <%= @directory %>/dump/>
+ Options Indexes FollowSymLinks MultiViews
+ AllowOverride All
+ IndexIgnore .ht* . robots.txt HEADER.html HEADER.cgi logo.png style.css
+ IndexOptions FancyIndexing FoldersFirst NameWidth=* TrackModified
+ IndexOrderDefault Descending Date
+ </Directory>
+
<Directory ~ "\.svn">
Require all denied
</Directory>
passwords = data_bag_item("wiki", "passwords")
+dump_directory = "/srv/wiki.openstreetmap.org/dump"
+
package "lua5.1" # newer versions do not work with Scribuntu!
apache_site "default" do
mode 0o644
end
-directory "/srv/dump.wiki.openstreetmap.org" do
+directory dump_directory do
owner node[:mediawiki][:user]
group node[:mediawiki][:group]
mode "0775"
end
-apache_site "dump.wiki.openstreetmap.org" do
- template "apache_wiki_dump.erb"
- directory "/srv/dump.wiki.openstreetmap.org"
- variables :aliases => "dump.wiki.osm.org"
-end
-
template "/etc/cron.d/wiki-osm-org-dump" do
owner "root"
group "root"
mode 0o644
source "cron_wiki_dump.erb"
+ variables :dumppath => dump_directory
end
+++ /dev/null
-# DO NOT EDIT - This file is being maintained by Chef
-
-<VirtualHost *:80>
- ServerName <%= @name %>
- ServerAlias <%= @aliases %>
- ServerAdmin webmaster@openstreetmap.org
-
- CustomLog /var/log/apache2/<%= @name %>-access.log combined
- ErrorLog /var/log/apache2/<%= @name %>-error.log
-
- DocumentRoot <%= @directory %>
-
- <Directory <%= @directory %>>
- Options Indexes FollowSymLinks MultiViews
- AllowOverride All
- IndexIgnore .ht* . robots.txt HEADER.html HEADER.cgi logo.png style.css
- IndexOptions FancyIndexing FoldersFirst NameWidth=* TrackModified
- IndexOrderDefault Descending Date
- </Directory>
-</VirtualHost>
#!/bin/bash
# DO NOT EDIT - This file is being maintained by Chef
+cd <%= @basepath %>/maintenance
+php dumpBackup.php --full > "<%= @dumppath %>/dump.xml"