diff options
author | Damien Lallement <dams@mageia.org> | 2010-11-05 14:51:49 +0000 |
---|---|---|
committer | Damien Lallement <dams@mageia.org> | 2010-11-05 14:51:49 +0000 |
commit | b8b1ee5326c90867c24f69a35b4485c4903a4bd4 (patch) | |
tree | 9a6be2f289b2c2c41520fa65d509d37e69edb413 /modules/blog | |
parent | c3dc3228d1e2bd0929e6439d36219c0d0ef570de (diff) | |
download | puppet-b8b1ee5326c90867c24f69a35b4485c4903a4bd4.tar puppet-b8b1ee5326c90867c24f69a35b4485c4903a4bd4.tar.gz puppet-b8b1ee5326c90867c24f69a35b4485c4903a4bd4.tar.bz2 puppet-b8b1ee5326c90867c24f69a35b4485c4903a4bd4.tar.xz puppet-b8b1ee5326c90867c24f69a35b4485c4903a4bd4.zip |
fix the path to '/usr/local/bin' '/var/lib/blog'
Diffstat (limited to 'modules/blog')
-rw-r--r-- | modules/blog/manifests/init.pp | 4 | ||||
-rwxr-xr-x | modules/blog/templates/check_new-blog-post.sh | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/modules/blog/manifests/init.pp b/modules/blog/manifests/init.pp index d48acd23..2bb061f5 100644 --- a/modules/blog/manifests/init.pp +++ b/modules/blog/manifests/init.pp @@ -7,7 +7,7 @@ class blog { ensure => installed } file { "check_new-blog-post": - path => "/home/blog/check_new-blog-post.sh", + path => "/usr/local/bin/check_new-blog-post.sh", ensure => present, owner => blog, group => blog, @@ -18,7 +18,7 @@ class blog { user => blog, hour => 0, minute => 15, - command => "/home/blog/check_new-blog-post.sh", + command => "/usr/local/bin/check_new-blog-post.sh", require => File["check_new-blog-post"], } } diff --git a/modules/blog/templates/check_new-blog-post.sh b/modules/blog/templates/check_new-blog-post.sh index 4c5fa557..10081508 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 -PATH_TO_FILE="/home/blog" +PATH_TO_FILE="/var/lib/blog" /usr/bin/wget -qO $PATH_TO_FILE"/RSS_new" http://blog.mageia.org/?feed=rss2 /bin/date +"%d:%m:%Y %H:%M" > $PATH_TO_FILE"/last_check" |