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
Date Wed, 02 Oct 2013 22:02:18 GMT
Updated Branches:
  refs/heads/v0.3.0 013b817f5 -> df2bf2256


KNOX-61: Create /var dirs and set ownership in %post


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

Branch: refs/heads/v0.3.0
Commit: df2bf2256be0cb0a07308aa945c9ff25ffe04567
Parents: 013b817
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:02:13 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/df2bf225/gateway-rpm/knox.spec
----------------------------------------------------------------------
diff --git a/gateway-rpm/knox.spec b/gateway-rpm/knox.spec
index eb3f255..5e99c84 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