Repository: ignite Updated Branches: refs/heads/ignite-2.5 f5c2de53f -> 28ecf5f3d
IGNITE-8510 RPM package 2.4.0 is incorrectly upgraded by 2.5.0 Signed-off-by: Andrey Gura <[email protected]> Project: http://git-wip-us.apache.org/repos/asf/ignite/repo Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/28ecf5f3 Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/28ecf5f3 Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/28ecf5f3 Branch: refs/heads/ignite-2.5 Commit: 28ecf5f3ddee681b17fdf63dfeb5fbd70cf1a251 Parents: f5c2de5 Author: Ivanov Petr <[email protected]> Authored: Thu May 17 13:16:15 2018 +0300 Committer: Andrey Gura <[email protected]> Committed: Thu May 17 13:18:07 2018 +0300 ---------------------------------------------------------------------- packaging/rpm/apache-ignite.spec | 10 ++++++++++ 1 file changed, 10 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ignite/blob/28ecf5f3/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
