aboutsummaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorDamien Lallement <dams@mageia.org>2011-03-18 18:32:33 +0000
committerDamien Lallement <dams@mageia.org>2011-03-18 18:32:33 +0000
commit5606a4ebee0be144d0ebbd6eeb84c15075d28321 (patch)
tree5fcda2c6bfce5ffda5566f09c74dfd6afd227c29 /modules
parent4f6bba22d8f75c8255f0f04d4c8056c0b0fae447 (diff)
downloadpuppet-5606a4ebee0be144d0ebbd6eeb84c15075d28321.tar
puppet-5606a4ebee0be144d0ebbd6eeb84c15075d28321.tar.gz
puppet-5606a4ebee0be144d0ebbd6eeb84c15075d28321.tar.bz2
puppet-5606a4ebee0be144d0ebbd6eeb84c15075d28321.tar.xz
puppet-5606a4ebee0be144d0ebbd6eeb84c15075d28321.zip
fix path for backup
Diffstat (limited to 'modules')
-rw-r--r--modules/blog/manifests/init.pp2
-rwxr-xr-xmodules/blog/templates/backup_blog-db.sh2
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/blog/manifests/init.pp b/modules/blog/manifests/init.pp
index 6a258eb2..422aaf90 100644
--- a/modules/blog/manifests/init.pp
+++ b/modules/blog/manifests/init.pp
@@ -56,7 +56,7 @@ class blog {
}
}
class db_backup inherits base {
- file { "/var/lib/blog/backup/db":
+ file { "/var/lib/blog/backup":
ensure => directory,
owner => root,
group => root,
diff --git a/modules/blog/templates/backup_blog-db.sh b/modules/blog/templates/backup_blog-db.sh
index 57ebec86..a2078ea3 100755
--- a/modules/blog/templates/backup_blog-db.sh
+++ b/modules/blog/templates/backup_blog-db.sh
@@ -1,7 +1,7 @@
#!/bin/sh
# Initialization
-PATH_TO_FILE=${PATH_TO_FILE:-/var/lib/blog/backup/db}
+PATH_TO_FILE=${PATH_TO_FILE:-/var/lib/blog/backup}
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