/[adm]/puppet/modules/blog/templates/check_new-blog-post.sh
ViewVC logotype

Diff of /puppet/modules/blog/templates/check_new-blog-post.sh

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3047 by dams, Wed Mar 6 19:59:50 2013 UTC revision 3048 by boklm, Tue Apr 16 13:56:45 2013 UTC
# Line 34  if [ "$tmp_old" = "$tmp_new" ] Line 34  if [ "$tmp_old" = "$tmp_new" ]
34                          then                          then
35                                  # Modification on lastest post                                  # Modification on lastest post
36                                  echo "YES - Modification" >> $PATH_TO_FILE"/last_check"                                  echo "YES - Modification" >> $PATH_TO_FILE"/last_check"
37                                  echo -e "The latest blog post has been modified and needs to be checked!\n\nTitle:\t$last_title\nAuthor:\t$last_creator\n-- \nMail sent by the script '$0' on `hostname`" | /bin/mail -r "Mageia Blog bot <mageia-blogteam@<%= domain %>>" -s "Modification of the lastest entry on English Blog" mageia-blogteam@<%= domain %>                                  echo -e "The latest blog post has been modified and needs to be checked!\n\nTitle:\t$last_title\nAuthor:\t$last_creator\n-- \nMail sent by the script '$0' on `hostname`" | /bin/mail -r '<%= blog_newpost_email_from %>' -s "Modification of the lastest entry on English Blog" <%= blog_newpost_email_to %>
38                                  echo $DATE                                  echo $DATE
39                          else                          else
40                                  echo "NO" >> $PATH_TO_FILE"/last_check"                                  echo "NO" >> $PATH_TO_FILE"/last_check"
# Line 42  if [ "$tmp_old" = "$tmp_new" ] Line 42  if [ "$tmp_old" = "$tmp_new" ]
42          else          else
43                  # New post to translate                  # New post to translate
44                  echo "YES - New entry" >> $PATH_TO_FILE"/last_check"                  echo "YES - New entry" >> $PATH_TO_FILE"/last_check"
45                  echo -e "A new blog post is waiting for translation:\n\nTitle:\t$last_title\nAuthor:\t$last_creator\n-- \nMail sent by the script '$0' on `hostname`" | /bin/mail -r "Mageia Blog bot <mageia-blogteam@<%= domain %>>" -s "New entry on English Blog" mageia-blogteam@<%= domain %>                  echo -e "A new blog post is waiting for translation:\n\nTitle:\t$last_title\nAuthor:\t$last_creator\n-- \nMail sent by the script '$0' on `hostname`" | /bin/mail -r '<%= blog_newpost_email_from %>' -s "New entry on English Blog" <%= blog_newpost_email_to %>
46                  echo $DATE                  echo $DATE
47  fi  fi
48    

Legend:
Removed from v.3047  
changed lines
  Added in v.3048

  ViewVC Help
Powered by ViewVC 1.1.30