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" |
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 |
|
|