Skip to content

Commit

Permalink
IGNITE-8510 RPM package 2.4.0 is incorrectly upgraded by 2.5.0
Browse files Browse the repository at this point in the history
Signed-off-by: Andrey Gura <[email protected]>
  • Loading branch information
vveider authored and agura committed May 17, 2018
1 parent 10419a1 commit d17ac69
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions packaging/rpm/apache-ignite.spec
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit d17ac69

Please sign in to comment.