Commit d635915c authored by anarcat's avatar anarcat Committed by anarcat

#529348 - do not failed disabling broken sites

parent bec5abec
......@@ -11,7 +11,7 @@
*/
function drush_provision_drupal_provision_backup_validate($url = NULL, $backup_file = NULL) {
drush_bootstrap(DRUSH_BOOTSTRAP_DRUPAL_SITE);
if (!drush_get_option('installed')) {
if (!drush_get_option('installed') && !drush_get_option('force', false)) {
drush_set_error('PROVISION_DRUPAL_SITE_NOT_FOUND');
}
......
......@@ -8,17 +8,6 @@
* Disable an enabled and installed site
*/
/**
* Make sure the command we are running is on an installed site.
*/
function drush_provision_drupal_provision_disable_validate() {
drush_bootstrap(DRUSH_BOOTSTRAP_DRUPAL_SITE);
if (!drush_get_option('installed')) {
drush_set_error('PROVISION_DRUPAL_SITE_FOUND');
}
}
/**
* Make a backup of the site before we mess with it
*/
......
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