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
78669e2e
Commit
78669e2e
authored
Apr 12, 2010
by
Adrian Rossouw
Browse files
remove server command
parent
3036e41c
Changes
1
Hide whitespace changes
Inline
Side-by-side
platform/server.provision.inc
deleted
100644 → 0
View file @
3036e41c
<?php
/**
* Drupal-based server configuration
*/
function
drush_provision_drupal_provision_server
()
{
if
(
!
provision_path
(
'exists'
,
drush_get_option
(
'config_path'
)
.
'/includes/global.inc'
,
TRUE
,
dt
(
"Global configuration file exists"
)))
{
# create an empty global.inc so the include doesn't fail with
# open_basedir restrictions
if
(
!
$file
=
fopen
(
drush_get_option
(
'config_path'
)
.
'/includes/global.inc'
,
'a'
))
{
drush_set_error
(
'PROVISION_FRAMEWORK_ERROR'
,
dt
(
'Cannot create global settings configuration'
));
}
else
{
fwrite
(
$file
,
"<?php # global settings.php"
);
fclose
(
$file
);
}
}
_provision_create_dir
(
drush_get_option
(
'backup_path'
),
dt
(
'Backup'
),
0700
);
}
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