function _provision_default_web_group

7.x-3.x provision.drush.inc _provision_default_web_group()

Related topics

3 calls to _provision_default_web_group()

File

./provision.drush.inc, line 354
Provision Drush commands.

Code

function _provision_default_web_group() {
  $info = posix_getgrgid(posix_getgid());
  $common_groups = array(
    'www-data',
    'apache',
    'nginx',
    'www',
    '_www',
    'webservd',
    'httpd',
    'nogroup',
    'nobody',
    $info['name'],
  );

  foreach ($common_groups as $group) {
    if (provision_posix_groupname($group)) {
      return $group;
      break;
    }
  }
  return NULL;
}