[Mageia-sysadm] [481] Fix the check on wget if server is down (thanks to rtp)

root at mageia.org root at mageia.org
Fri Nov 26 17:57:31 CET 2010


Revision: 481
Author:   dams
Date:     2010-11-26 17:57:31 +0100 (Fri, 26 Nov 2010)
Log Message:
-----------
Fix the check on wget if server is down (thanks to rtp)

Modified Paths:
--------------
    puppet/modules/blog/manifests/init.pp
    puppet/modules/blog/templates/check_new-blog-post.sh

Added Paths:
-----------
    puppet/modules/blog/templates/.htaccess

Modified: puppet/modules/blog/manifests/init.pp
===================================================================
--- puppet/modules/blog/manifests/init.pp	2010-11-26 15:36:45 UTC (rev 480)
+++ puppet/modules/blog/manifests/init.pp	2010-11-26 16:57:31 UTC (rev 481)
@@ -5,13 +5,13 @@
         	ensure => installed
     	}
 
-        package { 'wget':
+        package { 'php-mysql':
                 ensure => installed
         }
 
     include apache::mod_php
 
-    	package { 'php-mysql':
+    	package { 'wget':
         	ensure => installed
     	}
 

Added: puppet/modules/blog/templates/.htaccess
===================================================================
--- puppet/modules/blog/templates/.htaccess	                        (rev 0)
+++ puppet/modules/blog/templates/.htaccess	2010-11-26 16:57:31 UTC (rev 481)
@@ -0,0 +1,10 @@
+# BEGIN WordPress
+<IfModule mod_rewrite.c>
+RewriteEngine On
+RewriteBase /
+RewriteCond %{REQUEST_FILENAME} !-f
+RewriteCond %{REQUEST_FILENAME} !-d
+RewriteRule . /index.php [L]
+</IfModule>
+
+# END WordPress

Modified: puppet/modules/blog/templates/check_new-blog-post.sh
===================================================================
--- puppet/modules/blog/templates/check_new-blog-post.sh	2010-11-26 15:36:45 UTC (rev 480)
+++ puppet/modules/blog/templates/check_new-blog-post.sh	2010-11-26 16:57:31 UTC (rev 481)
@@ -3,7 +3,7 @@
 # Initialization
 PATH_TO_FILE=${PATH_TO_FILE:-/var/lib/blog}
 /usr/bin/wget -qO $PATH_TO_FILE"/RSS_new" http://blog.mageia.org/?feed=rss2
-if [ -n $? ] 
+if [ $? -ne 0 ] 
 then
         exit 2
 fi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/mageia-sysadm/attachments/20101126/eaf9e3ab/attachment.html>


More information about the Mageia-sysadm mailing list