You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by ag...@apache.org on 2018/05/17 10:17:11 UTC
ignite git commit: IGNITE-8510 RPM package 2.4.0 is incorrectly
upgraded by 2.5.0
Repository: ignite
Updated Branches:
refs/heads/master 10419a128 -> d17ac69c4
IGNITE-8510 RPM package 2.4.0 is incorrectly upgraded by 2.5.0
Signed-off-by: Andrey Gura <ag...@apache.org>
Project: http://git-wip-us.apache.org/repos/asf/ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/d17ac69c
Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/d17ac69c
Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/d17ac69c
Branch: refs/heads/master
Commit: d17ac69c4933507e641ede5cf606be810f79bdfa
Parents: 10419a1
Author: Ivanov Petr <pi...@gridgain.com>
Authored: Thu May 17 13:16:15 2018 +0300
Committer: Andrey Gura <ag...@apache.org>
Committed: Thu May 17 13:16:39 2018 +0300
----------------------------------------------------------------------
packaging/rpm/apache-ignite.spec | 10 ++++++++++
1 file changed, 10 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ignite/blob/d17ac69c/packaging/rpm/apache-ignite.spec
----------------------------------------------------------------------
diff --git a/packaging/rpm/apache-ignite.spec b/packaging/rpm/apache-ignite.spec
index 78c112a..c735a92 100644
--- a/packaging/rpm/apache-ignite.spec
+++ b/packaging/rpm/apache-ignite.spec
@@ -89,6 +89,16 @@ case $1 in
2)
# RPM postinst upgrade
echoUpgradeMessage
+
+ # Workaround for upgrade from 2.4.0
+ if [ -d /usr/com/apache-ignite/ ]; then
+ for file in /usr/com/apache-ignite/*; do
+ if [ ! -h $file ]; then
+ cp -rf $file %{_sharedstatedir}/%{name}/
+ fi
+ done
+ chown -vR %{user}:%{user} %{_sharedstatedir}/%{name} %{_log}/%{name}
+ fi
;;
esac