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
87095dd7
Commit
87095dd7
authored
Nov 28, 2008
by
anarcat
Committed by
anarcat
Nov 28, 2008
Browse files
Set proper file permissions after drupal install
Closes:
#338657
parent
ff15eebb
Changes
1
Hide whitespace changes
Inline
Side-by-side
platform/provision_drupal.module
View file @
87095dd7
...
...
@@ -355,7 +355,7 @@ function _provision_drupal_install_schema($url, $install_profile, $language = 'e
variable_set
(
'site_name'
,
$url
);
variable_set
(
'site_mail'
,
'webmaster@'
.
$url
);
variable_set
(
'clean_url'
,
TRUE
);
provision_path
(
"chmod"
,
"./sites/
$url
/settings.php"
,
0660
,
t
(
"Se
cured
settings.php with
safe
permissions"
));
provision_path
(
"chmod"
,
"./sites/
$url
/settings.php"
,
0660
,
t
(
"Se
t
settings.php with
Drupal-6
permissions"
));
menu_rebuild
();
// profile task
...
...
@@ -402,6 +402,10 @@ function _provision_drupal_install_schema($url, $install_profile, $language = 'e
provision_drupal_send_welcome_mail
(
$url
,
$profile
,
$language
,
$client_email
);
}
function
provision_drupal_provision_post_install
(
$url
,
$data
)
{
provision_path
(
"chmod"
,
"./sites/
$url
/settings.php"
,
0440
,
t
(
"Secured settings.php with safe permissions"
));
}
function
provision_drupal_mail
(
$key
,
&
$message
,
$params
)
{
switch
(
$key
)
{
case
'welcome-admin'
:
...
...
Write
Preview
Supports
Markdown
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