Merge "Fix the default for APACHE_GROUP"
diff --git a/lib/horizon b/lib/horizon
index 189ca10..a169925 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