aboutsummaryrefslogtreecommitdiffstats
path: root/modules/blog
diff options
context:
space:
mode:
authorDamien Lallement <dams@mageia.org>2011-02-11 15:36:00 +0000
committerDamien Lallement <dams@mageia.org>2011-02-11 15:36:00 +0000
commit8cf62c33e9a37c97a6cce26831d134f97d9a6d06 (patch)
treeca4c717c387bf43d411e9d6f0285a18602048166 /modules/blog
parent73bd458ea0225e19b730f7a0bc392250aa063bb0 (diff)
downloadpuppet-8cf62c33e9a37c97a6cce26831d134f97d9a6d06.tar
puppet-8cf62c33e9a37c97a6cce26831d134f97d9a6d06.tar.gz
puppet-8cf62c33e9a37c97a6cce26831d134f97d9a6d06.tar.bz2
puppet-8cf62c33e9a37c97a6cce26831d134f97d9a6d06.tar.xz
puppet-8cf62c33e9a37c97a6cce26831d134f97d9a6d06.zip
add to avoid SPAM
Diffstat (limited to 'modules/blog')
-rwxr-xr-xmodules/blog/templates/check_new-blog-post.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/blog/templates/check_new-blog-post.sh b/modules/blog/templates/check_new-blog-post.sh
index 093d5567..14cf0f03 100755
--- a/modules/blog/templates/check_new-blog-post.sh
+++ b/modules/blog/templates/check_new-blog-post.sh
@@ -1,7 +1,7 @@
#!/bin/sh
# Initialization
-REPLYTO=mageia-blogteam@mageia.org
+REPLYTO=mageia-blogteam@$domain
PATH_TO_FILE=${PATH_TO_FILE:-/var/lib/blog}
/usr/bin/wget -qO $PATH_TO_FILE"/last_tmp" http://blog.mageia.org/?feed=rss2
if [ $? -ne 0 ]
@@ -38,14 +38,14 @@ if [ "$tmp_old" = "$tmp_new" ]
cat $PATH_TO_FILE"/last_check" > $PATH_TO_FILE"/last_need_translation"
echo $tmp_new >> $PATH_TO_FILE"/last_need_translation"
echo "YES - Modification" >> $PATH_TO_FILE"/last_check"
- echo -e "Info: the last blog post had been modified and need to be checked.\nTitle: \"$tmp_new\"" | /bin/mail -s "Modification of the last entry on English Blog" mageia-blogteam@mageia.org
+ echo -e "Info: the last blog post had been modified and need to be checked.\nTitle: \"$tmp_new\"" | /bin/mail -s "Modification of the last entry on English Blog" mageia-blogteam@$domain
echo $DATE
else
# New post to translate
cat $PATH_TO_FILE"/last_check" > $PATH_TO_FILE"/last_need_translation"
echo $tmp_new >> $PATH_TO_FILE"/last_need_translation"
echo "YES - New entry" >> $PATH_TO_FILE"/last_check"
- echo -e "Info: a new blog post is waiting for translation.\nTitle: \"$tmp_new\"" | /bin/mail -s "New entry on English Blog" mageia-blogteam@mageia.org
+ echo -e "Info: a new blog post is waiting for translation.\nTitle: \"$tmp_new\"" | /bin/mail -s "New entry on English Blog" mageia-blogteam@$domain
echo $DATE
fi
fi