Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
typo3_site
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Chef Cookbooks
typo3_site
Commits
4f7843ca
Commit
4f7843ca
authored
10 years ago
by
Stefan Galinski
Browse files
Options
Downloads
Patches
Plain Diff
[BUGFIX] The apache must run on the selected main group of the user (see the data_bag)
parent
9ece49d3
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
recipes/default.rb
+16
-0
16 additions, 0 deletions
recipes/default.rb
templates/default/SiteConfiguration.erb
+3
-0
3 additions, 0 deletions
templates/default/SiteConfiguration.erb
with
19 additions
and
0 deletions
recipes/default.rb
+
16
−
0
View file @
4f7843ca
...
...
@@ -22,6 +22,8 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.
data_bag
=
data_bag_item
(
'apps'
,
'global'
)
##########################
### Add hostname entry ###
##########################
...
...
@@ -134,6 +136,17 @@ web_app node['typo3_site']['hostname'] do
server_aliases
node
[
'typo3_site'
][
'server_aliases'
]
end
# The apache must be running on the main group of the user that can be different, because of the group mapping feature
replace_or_add
'Change the apache group to the users main group'
do
path
'/etc/apache2/envvars'
pattern
'export APACHE_RUN_GROUP=.*'
line
"export APACHE_RUN_GROUP=
#{
data_bag
[
'groupId'
]
}
"
end
service
'apache2'
do
action
:restart
end
#######################
### Provide Sources ###
#######################
...
...
@@ -211,6 +224,9 @@ template "#{node['typo3_site']['webroot']}/#{node['typo3_site']['hostname']}/typ
source
'SiteConfiguration.erb'
owner
'vagrant'
mode
'0660'
variables
({
:group_id
=>
data_bag
[
'groupId'
]
})
end
#########################
...
...
This diff is collapsed.
Click to expand it.
templates/default/SiteConfiguration.erb
+
3
−
0
View file @
4f7843ca
...
...
@@ -43,4 +43,7 @@ if (!$GLOBALS['TYPO3_DISABLE_DEBUG']) {
$
GLOBALS
['
TYPO3_CONF_VARS
']['
SYS
']['
clearCacheSystem
'
] =
TRUE;
}
//
Vagrant
specific
stuff
(
if
your
user
has
another
main
group
id
than
1000,
especially
required
on
MacOSX
)
$
GLOBALS
['
TYPO3_CONF_VARS
']['
BE
']['
createGroup
'
] =
'
<%=
@group_id
%>
'
;
?
>
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment