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
961deee4
Commit
961deee4
authored
Oct 26, 2009
by
anarcat
Committed by
anarcat
Oct 26, 2009
Browse files
#529348
- make disable work even when the site doesn't exist
parent
1530886c
Changes
1
Hide whitespace changes
Inline
Side-by-side
platform/backup.provision.inc
View file @
961deee4
...
...
@@ -10,7 +10,12 @@
* Make sure the site is installed and enabled, and that we have a valid target to back up to.
*/
function
drush_provision_drupal_provision_backup_validate
(
$url
=
NULL
,
$backup_file
=
NULL
)
{
drush_bootstrap
(
DRUSH_BOOTSTRAP_DRUPAL_SITE
);
if
(
!@
drush_bootstrap
(
DRUSH_BOOTSTRAP_DRUPAL_SITE
))
{
if
(
drush_get_option
(
'force'
,
false
))
{
drush_log
(
"clearing error"
);
drush_set_context
(
'DRUSH_ERROR_CODE'
,
DRUSH_SUCCESS
);
}
}
if
(
!
drush_get_option
(
'installed'
)
&&
!
drush_get_option
(
'force'
,
false
))
{
drush_set_error
(
'PROVISION_DRUPAL_SITE_NOT_FOUND'
);
}
...
...
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