From 2ed63f4f8ede2a5819eb76f109a947f6bab24d0d Mon Sep 17 00:00:00 2001 From: Martin Vidner Date: Tue, 4 Dec 2012 10:33:49 +0100 Subject: [PATCH] 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 --- lib/horizon | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/horizon b/lib/horizon index 6173042fe5..1f68d79535 100644 --- a/lib/horizon +++ b/lib/horizon @@ -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