Skip to content
Snippets Groups Projects
Commit 4f7843ca authored by Stefan Galinski's avatar Stefan Galinski :video_game:
Browse files

[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
......@@ -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
#########################
......
......@@ -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 %>';
?>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment