Fix the default for APACHE_GROUP

It should be the group of the effective apache user.

For example, on openSUSE, we use wwwrun:www for apache and $USER:users
for users.

Change-Id: I8e12a8d90d45cfd18e67a41cf5462216ae404733
This commit is contained in:
Martin Vidner 2012-12-04 10:33:49 +01:00 committed by Vincent Untz
parent d5a80069d8
commit 2ed63f4f8e

@ -29,10 +29,10 @@ set +o xtrace
# Set up default directories
HORIZON_DIR=$DEST/horizon
# Allow overriding the default Apache user and group, default both to
# current user.
# Allow overriding the default Apache user and group, default to
# current user and his default group.
APACHE_USER=${APACHE_USER:-$USER}
APACHE_GROUP=${APACHE_GROUP:-$APACHE_USER}
APACHE_GROUP=${APACHE_GROUP:-$(id -gn $APACHE_USER)}
# Entry Points