From 51ae016d59fe7b2a57057c07ff40d3127c52814e Mon Sep 17 00:00:00 2001 From: Damien Lallement Date: Fri, 18 Mar 2011 18:20:30 +0000 Subject: add db backup and update class names to be more explicit --- modules/blog/templates/backup_blog-db.sh | 8 ++++++++ modules/blog/templates/blogs_vhosts.conf | 9 +++++++++ 2 files changed, 17 insertions(+) create mode 100755 modules/blog/templates/backup_blog-db.sh (limited to 'modules/blog/templates') diff --git a/modules/blog/templates/backup_blog-db.sh b/modules/blog/templates/backup_blog-db.sh new file mode 100755 index 00000000..57ebec86 --- /dev/null +++ b/modules/blog/templates/backup_blog-db.sh @@ -0,0 +1,8 @@ +#!/bin/sh + +# Initialization +PATH_TO_FILE=${PATH_TO_FILE:-/var/lib/blog/backup/db} +for locale in de el en es fr it nl pl pt ro ru tr +do + /usb/bin/mysqldump --add-drop-table -h localhost blog_$locale | bzip2 -c > $PATH_TO_FILE/mageia_$locale.bak.sql.bz2 +done diff --git a/modules/blog/templates/blogs_vhosts.conf b/modules/blog/templates/blogs_vhosts.conf index b4a91396..48b6d9ad 100644 --- a/modules/blog/templates/blogs_vhosts.conf +++ b/modules/blog/templates/blogs_vhosts.conf @@ -5,3 +5,12 @@ Options FollowSymlinks Options +Indexes +# Add a permanent redirection for 'pt' as it was 'pt-br' before +# Add a permanent redirection for '/*' as it's now '/en/' for english blog +# TO BE REMOVE in May, 1st (?) + + Redirect permanent /pt-br/ /pt/ + Redirect permanent /wp-content/uploads/ /en/wp-content/uploads/ + Redirect permanent /wp-includes/images/ /en/wp-includes/images/ + RedirectMatch permanent ^/?$ /en/ + -- cgit v1.2.1