Commit 36dc8ecd authored by Adrian Rossouw's avatar Adrian Rossouw Committed by adrian
Browse files

Fix update command, is now called during deploy. Provision can now upgrade...

Fix update command, is now called during deploy. Provision can now upgrade between minor versions and major versions. Still missing migrate command
parent e4baf129
...@@ -69,3 +69,6 @@ function provision_drupal_provision_deploy_rollback(&$data, $url) { ...@@ -69,3 +69,6 @@ function provision_drupal_provision_deploy_rollback(&$data, $url) {
provision_drupal_provision_deploy(&$data, $url); provision_drupal_provision_deploy(&$data, $url);
} }
function provision_drupal_provision_post_deploy(&$data, $url) {
provision_invoke('update', $data, $url);
}
...@@ -4,8 +4,7 @@ ...@@ -4,8 +4,7 @@
require_once(dirname(__FILE__) . '/../provision.inc'); require_once(dirname(__FILE__) . '/../provision.inc');
if ($argv[1]) { if ($argv[1]) {
// Fake the necessary HTTP headers that Drupal needs: // Fake the necessary HTTP headers that Drupal needs:
provision_external_init($argv[1], FALSE); $data = provision_external_init($argv[1], FALSE);
} }
else { else {
provision_set_error(PROVISION_FRAMEWORK_ERROR); provision_set_error(PROVISION_FRAMEWORK_ERROR);
...@@ -131,5 +130,5 @@ function _update_do_one($module, $number, &$context) { ...@@ -131,5 +130,5 @@ function _update_do_one($module, $number, &$context) {
} }
update_main($url, $data); update_main();
provision_output($data); provision_output($data);
...@@ -8,7 +8,6 @@ function provision_drupal_provision_update_validate() { ...@@ -8,7 +8,6 @@ function provision_drupal_provision_update_validate() {
function provision_drupal_provision_update(&$data, $url) { function provision_drupal_provision_update(&$data, $url) {
$cmd = sprintf("php %s/drupal_update.php %s", dirname(__FILE__), $url); $cmd = sprintf("php %s/drupal_update.php %s", dirname(__FILE__), $url);
provision_exec($cmd, $data); provision_exec($cmd, $data);
provision_invoke('verify', $data, $url);
} }
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