Skip to content
Snippets Groups Projects
Commit 6682e772 authored by Nils Christian's avatar Nils Christian
Browse files

remove directory with contents of unpacked war file on uninstall

parent 700c470b
No related branches found
No related tags found
2 merge requests!35712.0.1 into master,!352remove directory with contents of unpacked war file on uninstall
......@@ -41,10 +41,12 @@ if ! su - postgres -c "psql --dbname map_viewer -q -c '\q'" 2> /dev/null; then
fi
%preun -p /bin/bash
# save version information of the old package to make sure we run the correct DB-update script after installation
if [ $1 == 1 ]; then
# save version information of the old package to make sure we run the correct DB-update script after installation
mkdir -p %{_sharedstatedir}/rpm-state/%{name}
echo -n %{version} > %{_sharedstatedir}/rpm-state/%{name}/OLD_VERSION
# remove old unpacked ("exploded") directory of war file
rm -rf %{_sharedstatedir}/tomcat/webapps/%{name}
fi
%posttrans -p /bin/bash
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment