add scripts for CakePHP and PHPMyAdmin, courtesy of WvR.
Also include new logging options (verbosity)
This commit is contained in:
11
run.d/drupal
11
run.d/drupal
@@ -1,13 +1,6 @@
|
||||
#!/usr/bin/php -q
|
||||
<?
|
||||
// Fetch the host list to check
|
||||
//
|
||||
if(getenv('CHK_HOSTS') == null) {
|
||||
$hosts = null;
|
||||
} else {
|
||||
$hosts = explode(' ', getenv('CHK_HOSTS'));
|
||||
if (implode($hosts)=='') die("No hosts to check.\n");
|
||||
}
|
||||
require_once("toolkit.php");
|
||||
|
||||
// Retrieve current Drupal version as documented at http://www.goldcoastmedia.co.uk/blog/drupal-versions-with-php
|
||||
//
|
||||
@@ -30,6 +23,8 @@ if($feed && $feed instanceof SimpleXMLElement) {
|
||||
}
|
||||
}
|
||||
|
||||
verbose("Current Drupal version: $dr_current", 1);
|
||||
|
||||
// Start checking hosts
|
||||
//
|
||||
checkHost(null, $dr_current);
|
||||
|
||||
Reference in New Issue
Block a user