!5 fix %postun problem

Merge pull request !5 from jackie_wu123/master
This commit is contained in:
openeuler-ci-bot 2020-06-16 15:56:14 +08:00 committed by Gitee
commit 107228b783

View File

@ -6,7 +6,7 @@
Name: mysql Name: mysql
Version: 8.0.17 Version: 8.0.17
Release: 3 Release: 4
License: GPLv2 License: GPLv2
Summary: The world's most popular open source database Summary: The world's most popular open source database
URL: http://www.mysql.com/ URL: http://www.mysql.com/
@ -71,8 +71,10 @@ if [ -f %{_initddir}/mysql ];then
fi fi
%postun %postun
rm -rf %{_prefix}/local/%{name} if ["$1" = "0"]; then
userdel -r %{name} &>/dev/null rm -rf %{_prefix}/local/%{name}
userdel -r %{name} &>/dev/null
fi
%files %files
%attr(755, %{name}, %{name}) %{_prefix}/local/%{name}/* %attr(755, %{name}, %{name}) %{_prefix}/local/%{name}/*
@ -80,6 +82,9 @@ userdel -r %{name} &>/dev/null
%exclude /usr/lib/debug %exclude /usr/lib/debug
%changelog %changelog
* Tue Jun 16 2020 wutao <wutao61@huawei.com> - 8.0.17-4
- fix %postun problem
* Wed Mar 1 2020 zhangtao<zhangtao221@huawei.com> 8.0.17-3 * Wed Mar 1 2020 zhangtao<zhangtao221@huawei.com> 8.0.17-3
- add fstack-protector-strong - add fstack-protector-strong
* Fri Feb 28 2020 catastrowings <jianghuhao1994@163.com> 8.0.17-2 * Fri Feb 28 2020 catastrowings <jianghuhao1994@163.com> 8.0.17-2