Commit 8d020fd3 authored by Steven Jones's avatar Steven Jones

Issue #1090678 by Steven Jones: Added wget cron method broken for d7 sites.

parent 8bf4fd88
<?php
// Fetch the cron key from the Drupal site and set in a drush context.
// The cron key feature was introduced in Drupal 7, so for lower versions we do
// nothing.
\ No newline at end of file
<?php
// Fetch the cron key from the Drupal site and set in a drush context.
drush_set_option('cron_key', variable_get('cron_key', 'drupal'));
\ No newline at end of file
......@@ -35,6 +35,8 @@ function drush_provision_drupal_post_provision_import() {
drush_set_option('provision_save_config', false);
provision_backend_invoke(d()->name, 'provision-verify');
drush_include_engine('drupal', 'cron_key');
provision_reload_config('site');
}
......
......@@ -73,5 +73,6 @@ function drush_provision_drupal_post_provision_install() {
_provision_drupal_rebuild_caches();
drush_set_option('packages', _scrub_object(provision_drupal_system_map()), 'site');
_provision_client_create_symlink();
drush_include_engine('drupal', 'cron_key');
}
......@@ -35,10 +35,11 @@ function provision_drupal_drush_help($section) {
function provision_drupal_drush_engine_drupal() {
$engines = array();
$engines['install'] = array();
$engines['import'] = array();
$engines['deploy'] = array();
$engines['clear'] = array();
$engines['cron_key'] = array();
$engines['deploy'] = array();
$engines['import'] = array();
$engines['install'] = array();
$engines['packages'] = array();
$engines['verify'] = array();
return $engines;
......
......@@ -99,6 +99,7 @@ function drush_provision_drupal_post_provision_verify() {
drush_set_option('installed', TRUE, 'site');
_provision_client_create_symlink();
drush_include_engine('drupal', 'cron_key');
}
}
......@@ -35,6 +35,7 @@ class provisionContext_site extends provisionContext {
$this->setProperty('client_name');
$this->setProperty('aliases', array(), TRUE);
$this->setProperty('redirection', FALSE);
$this->setProperty('cron_key', '');
// this can potentially be handled by a Drupal sub class
$this->setProperty('profile', 'default');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment