diff options
Diffstat (limited to 'modules/blog')
-rw-r--r-- | modules/blog/manifests/init.pp | 10 | ||||
-rwxr-xr-x | modules/blog/templates/check_new-blog-post.sh | 4 |
2 files changed, 8 insertions, 6 deletions
diff --git a/modules/blog/manifests/init.pp b/modules/blog/manifests/init.pp index acd4516f..c89a8168 100644 --- a/modules/blog/manifests/init.pp +++ b/modules/blog/manifests/init.pp @@ -15,14 +15,16 @@ class blog { } class files_bots inherits base { -if versioncmp($::lsbdistrelease, '7') < 0 { - package { ['php-mysql', +if versioncmp($::lsbdistrelease, '9') < 0 { + package { ['php-mysqlnd', 'php-ldap', - 'unzip']: } + 'unzip', + 'nail']: } } else { package { ['php-mysqlnd', 'php-ldap', - 'unzip']: } + 'unzip', + 's-nail']: } } mga_common::local_script { 'check_new-blog-post.sh': diff --git a/modules/blog/templates/check_new-blog-post.sh b/modules/blog/templates/check_new-blog-post.sh index 50bc082d..f2089a52 100755 --- a/modules/blog/templates/check_new-blog-post.sh +++ b/modules/blog/templates/check_new-blog-post.sh @@ -32,9 +32,9 @@ if [ "$tmp_old" = "$tmp_new" ] tmp_old=$(cat $PATH_TO_FILE"/last_entry" | sed -n '2p') if [ "$tmp_old" != "$tmp_new" ] then - # Modification on lastest post + # Modification on latest post echo "YES - Modification" >> $PATH_TO_FILE"/last_check" - 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 %> + 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 latest entry on English Blog" <%= blog_newpost_email_to %> echo $DATE else echo "NO" >> $PATH_TO_FILE"/last_check" |