Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
provision
Commits
5de538fb
Commit
5de538fb
authored
Jan 21, 2010
by
anarcat
Committed by
Antoine Beaupre
Jan 21, 2010
Browse files
it seems the platform arguments are now optional for pre_migrate & rollback hooks (?)
parent
c4f36c03
Changes
1
Hide whitespace changes
Inline
Side-by-side
platform/migrate.provision.inc
View file @
5de538fb
...
...
@@ -30,7 +30,7 @@ function drush_provision_drupal_provision_migrate_validate($url = null, $platfor
/**
* Make a backup before making any changes, and add extract the file we are restoring from
*/
function
drush_provision_drupal_pre_provision_migrate
(
$url
,
$platform
)
{
function
drush_provision_drupal_pre_provision_migrate
(
$url
,
$platform
=
null
)
{
/* Set offline mode to true and re-generate the settings.php. This will write a
* $conf['site_offline'] = 1; to the settings.php
*/
...
...
@@ -44,7 +44,7 @@ function drush_provision_drupal_pre_provision_migrate($url, $platform) {
* Remove the extracted site directory
* Restore the vhost conf per the original platform
*/
function
drush_provision_drupal_pre_provision_migrate_rollback
(
$url
,
$platform
)
{
function
drush_provision_drupal_pre_provision_migrate_rollback
(
$url
,
$platform
=
null
)
{
// Set site_offline to false and regenerate the config
drush_log
(
dt
(
"Bringing site out of maintenance"
));
drush_set_option
(
'site_offline'
,
0
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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