Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
P
provision
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Custom Issue Tracker
Custom Issue Tracker
Labels
Merge Requests
1
Merge Requests
1
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
project
provision
Commits
961deee4
Commit
961deee4
authored
Oct 26, 2009
by
anarcat
Committed by
anarcat
Oct 26, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#529348
- make disable work even when the site doesn't exist
parent
1530886c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
platform/backup.provision.inc
platform/backup.provision.inc
+6
-1
No files found.
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