knox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kmin...@apache.org
Subject git commit: KNOX-61: Create /var dirs and set ownership in %post (cherry picked from commit df2bf2256be0cb0a07308aa945c9ff25ffe04567)
Date Wed, 02 Oct 2013 22:39:13 GMT
Updated Branches:
  refs/heads/master ddb4be6f0 -> 65fefc3e8


KNOX-61: Create /var dirs and set ownership in %post
(cherry picked from commit df2bf2256be0cb0a07308aa945c9ff25ffe04567)


Project: http://git-wip-us.apache.org/repos/asf/incubator-knox/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-knox/commit/65fefc3e
Tree: http://git-wip-us.apache.org/repos/asf/incubator-knox/tree/65fefc3e
Diff: http://git-wip-us.apache.org/repos/asf/incubator-knox/diff/65fefc3e

Branch: refs/heads/master
Commit: 65fefc3e839b661df7a766cd6aae115090cebaa4
Parents: ddb4be6
Author: Kevin Minder <kevin.minder@hortonworks.com>
Authored: Wed Oct 2 18:02:13 2013 -0400
Committer: Kevin Minder <kevin.minder@hortonworks.com>
Committed: Wed Oct 2 18:39:00 2013 -0400

----------------------------------------------------------------------
 gateway-rpm/knox.spec | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-knox/blob/65fefc3e/gateway-rpm/knox.spec
----------------------------------------------------------------------
diff --git a/gateway-rpm/knox.spec b/gateway-rpm/knox.spec
index 623c0d9..a973fcb 100644
--- a/gateway-rpm/knox.spec
+++ b/gateway-rpm/knox.spec
@@ -46,7 +46,6 @@ echo "Knox installation build"
 %install
 mkdir -p $RPM_BUILD_ROOT/usr/lib/knox/
 cp -R ./ $RPM_BUILD_ROOT/usr/lib/knox/
-chown -R `logname` $RPM_BUILD_ROOT/usr/lib/knox/
 
 %clean
 rm -rf $RPM_BUILD_ROOT $RPM_BUILD_DIR
@@ -57,6 +56,8 @@ rm -rf $RPM_BUILD_ROOT $RPM_BUILD_DIR
 %pre
 
 %post
+mkdir -p /usr/var/knox /usr/run/knox
+chown -R `logname` /usr/lib/knox /usr/var/knox /usr/run/knox
 echo "Knox installation complete"
 
 %postun


Mime
View raw message