Browse code

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

Martin Vidner authored on 2012/12/04 18:33:49
Showing 1 changed files
... ...
@@ -29,10 +29,10 @@ set +o xtrace
29 29
 # Set up default directories
30 30
 HORIZON_DIR=$DEST/horizon
31 31
 
32
-# Allow overriding the default Apache user and group, default both to
33
-# current user.
32
+# Allow overriding the default Apache user and group, default to
33
+# current user and his default group.
34 34
 APACHE_USER=${APACHE_USER:-$USER}
35
-APACHE_GROUP=${APACHE_GROUP:-$APACHE_USER}
35
+APACHE_GROUP=${APACHE_GROUP:-$(id -gn $APACHE_USER)}
36 36
 
37 37
 
38 38
 # Entry Points