fix %postun problem
This commit is contained in:
parent
4cc1d80fa5
commit
8fc9be1997
11
mysql.spec
11
mysql.spec
@ -6,7 +6,7 @@
|
||||
|
||||
Name: mysql
|
||||
Version: 8.0.17
|
||||
Release: 3
|
||||
Release: 4
|
||||
License: GPLv2
|
||||
Summary: The world's most popular open source database
|
||||
URL: http://www.mysql.com/
|
||||
@ -71,8 +71,10 @@ if [ -f %{_initddir}/mysql ];then
|
||||
fi
|
||||
|
||||
%postun
|
||||
rm -rf %{_prefix}/local/%{name}
|
||||
userdel -r %{name} &>/dev/null
|
||||
if ["$1" = "0"]; then
|
||||
rm -rf %{_prefix}/local/%{name}
|
||||
userdel -r %{name} &>/dev/null
|
||||
fi
|
||||
|
||||
%files
|
||||
%attr(755, %{name}, %{name}) %{_prefix}/local/%{name}/*
|
||||
@ -80,6 +82,9 @@ userdel -r %{name} &>/dev/null
|
||||
%exclude /usr/lib/debug
|
||||
|
||||
%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
|
||||
- add fstack-protector-strong
|
||||
* Fri Feb 28 2020 catastrowings <jianghuhao1994@163.com> 8.0.17-2
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user