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
33b3a350
Commit
33b3a350
authored
Nov 14, 2008
by
Adrian Rossouw
Committed by
adrian
Nov 14, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#327888
- permissions problem during install.
parent
efa382de
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
platform/provision_drupal.module
platform/provision_drupal.module
+1
-0
provision.module
provision.module
+4
-2
No files found.
platform/provision_drupal.module
View file @
33b3a350
...
...
@@ -469,6 +469,7 @@ function provision_drupal_send_welcome_mail($url, $profile, $language, $client_e
* implementation of provision_verify
*/
function
provision_drupal_provision_verify
(
$url
,
&
$data
)
{
_provision_drupal_create_directories
(
'default'
);
provision_path
(
"writable"
,
"sites"
,
TRUE
,
t
(
"Drupal sites directory is writable by the provisioning script"
),
t
(
"Drupal sites directory is not writable by the provisioning script"
),
PROVISION_PERM_ERROR
);
$exists
=
_provision_create_dir
(
PROVISION_DRUSHRC_PATH
,
t
(
'Drush configuration path'
),
0700
);
...
...
provision.module
View file @
33b3a350
...
...
@@ -182,7 +182,10 @@ function _provision_config_defaults() {
*/
function
_provision_generate_config
(
$data
=
array
())
{
provision_log
(
'notice'
,
t
(
"Generating provision.settings.php file"
));
provision_path
(
"chmod"
,
"sites/default"
,
0750
);
// We are doing a system call here to ensure we can write to the file
// and we don't need logging or the overhead of provision_path on this
system
(
'chmod u+wx sites/default'
);
if
(
provision_path
(
"exists"
,
"sites/default/provision.settings.php"
))
{
provision_path
(
"chmod"
,
"sites/default/provision.settings.php"
,
0600
,
t
(
'Changed permissions of provision.settings.php to @confirm'
),
...
...
@@ -199,7 +202,6 @@ function _provision_generate_config($data = array()) {
provision_path
(
"chmod"
,
"sites/default/provision.settings.php"
,
0400
,
t
(
'Changed permissions of provision.settings.php to @confirm'
),
t
(
'Could not change permissions of provision.settings.php to @confirm'
));
provision_path
(
"chmod"
,
"sites/default"
,
0550
);
return
TRUE
;
}
...
...
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