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
diff --git a/lib/horizon b/lib/horizon
index 6173042..1f68d79 100644
--- a/lib/horizon
+++ b/lib/horizon
@@ -29,10 +29,10 @@
# 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