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
87095dd7
Commit
87095dd7
authored
Nov 28, 2008
by
anarcat
Committed by
anarcat
Nov 28, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set proper file permissions after drupal install
Closes:
#338657
parent
ff15eebb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
platform/provision_drupal.module
platform/provision_drupal.module
+5
-1
No files found.
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
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