Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
provision
Commits
d635915c
Commit
d635915c
authored
Jul 27, 2009
by
anarcat
Committed by
anarcat
Jul 27, 2009
Browse files
#529348
- do not failed disabling broken sites
parent
bec5abec
Changes
2
Hide whitespace changes
Inline
Side-by-side
platform/backup.provision.inc
View file @
d635915c
...
...
@@ -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'
);
}
...
...
platform/disable.provision.inc
View file @
d635915c
...
...
@@ -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
*/
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment