Active
Project:
Provision
Version:
7.x-3.x-dev
Component:
Code
Priority:
Major
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
15 Jan 2015 at 23:47 UTC
Updated:
27 Jan 2015 at 17:33 UTC
Jump to comment: Most recent
I was trying to connect a CentOS server as a remote to a devshop server running ubuntu.
I was having more problems than expected, then realized web_group is set to www-data, not centos's "apache" user.
I tracked it down to Line 42 of provision/http/Provision/Service/http/public.php:
function init_server() {
parent::init_server();
// System account
if ($this->server->name == '@server_master') {
$this->server->setProperty('web_group', _provision_default_web_group());
}
else {
$this->server->web_group = d('@server_master')->web_group;
}
It appears that servers are forced to use the web_group of server master.
Not sure yet how we might fix this, but it's something I see as a requirement: being able to support any server in a single aegir instance.
_provision_default_web_group() needs to be run on the server to get the right web group.
Comments
Comment #1
jon pughComment #2
helmo commentedI think this is the same issue as #984282: File ownership incorrect when migrating site between host with different web user
Comment #3
jon pughHow about we make this a feature request, and file #984282: File ownership incorrect when migrating site between host with different web user as a bug? Will also make this a parent issue for that bug.