[Mageia-sysadm] [146] fix the path to '/usr/local/bin' '/var/lib/blog'
root at mageia.org
root at mageia.org
Fri Nov 5 15:51:49 CET 2010
Revision: 146
Author: dams
Date: 2010-11-05 15:51:49 +0100 (Fri, 05 Nov 2010)
Log Message:
-----------
fix the path to '/usr/local/bin' '/var/lib/blog'
Modified Paths:
--------------
puppet/modules/blog/manifests/init.pp
puppet/modules/blog/templates/check_new-blog-post.sh
Modified: puppet/modules/blog/manifests/init.pp
===================================================================
--- puppet/modules/blog/manifests/init.pp 2010-11-05 14:34:52 UTC (rev 145)
+++ puppet/modules/blog/manifests/init.pp 2010-11-05 14:51:49 UTC (rev 146)
@@ -7,7 +7,7 @@
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 @@
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"],
}
}
Modified: puppet/modules/blog/templates/check_new-blog-post.sh
===================================================================
--- puppet/modules/blog/templates/check_new-blog-post.sh 2010-11-05 14:34:52 UTC (rev 145)
+++ puppet/modules/blog/templates/check_new-blog-post.sh 2010-11-05 14:51:49 UTC (rev 146)
@@ -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"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/mageia-sysadm/attachments/20101105/0aa5bdc4/attachment.html>
More information about the Mageia-sysadm
mailing list