aboutsummaryrefslogtreecommitdiffstats
path: root/modules/blog/templates/backup_blog-files.sh
diff options
context:
space:
mode:
Diffstat (limited to 'modules/blog/templates/backup_blog-files.sh')
-rwxr-xr-xmodules/blog/templates/backup_blog-files.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/blog/templates/backup_blog-files.sh b/modules/blog/templates/backup_blog-files.sh
index b8639014..e268ad2b 100755
--- a/modules/blog/templates/backup_blog-files.sh
+++ b/modules/blog/templates/backup_blog-files.sh
@@ -1,7 +1,7 @@
#!/bin/bash
# Initialization
-PATH_TO_FILE=${PATH_TO_FILE:-<%= @blog_files_backupdir %>}
+PATH_TO_FILE=${PATH_TO_FILE:-<%= blog_files_backupdir %>}
[ ! -f $PATH_TO_FILE/count ] && echo 0 > $PATH_TO_FILE/count
COUNT=$(cat "$PATH_TO_FILE/count")
# Backup each locale
@@ -12,7 +12,7 @@ do
/bin/mkdir $PATH_TO_FILE/$locale
fi
# use relative paths to avoid "Removing leading `/' from member names'" warning
- tar -C / -Jcf "$PATH_TO_FILE/$locale/$locale-$COUNT.tar.xz" "$(sed s,^/,, <<< "<%= @blog_location %>/$locale")"
+ tar -C / -Jcf "$PATH_TO_FILE/$locale/$locale-$COUNT.tar.xz" "$(sed s,^/,, <<< "<%= blog_location %>/$locale")"
done
# Check count file to have a week of backup in the directory
if [ $COUNT -ne 6 ]