diff --git a/keentuned-1.0.1.tar.gz b/keentuned-1.0.1.tar.gz index b6dcf40a9a5ccf43140b07bb3a57646fe25380fc..aa9e20f47ef60316bdb6cc9eec3c95b1a9f643f5 100644 Binary files a/keentuned-1.0.1.tar.gz and b/keentuned-1.0.1.tar.gz differ diff --git a/keentuned.spec b/keentuned.spec index 3d2a3bfe3f50186c307378b78ca5130d97daf103..4a76086a7a276d9c246b7e05d609d3dd69c601a3 100644 --- a/keentuned.spec +++ b/keentuned.spec @@ -1,5 +1,5 @@ %define debug_package %{nil} -%define anolis_release 1 +%define anolis_release 2 # # spec file for package golang-keentuned @@ -56,6 +56,19 @@ rm -rf $RPM_BUILD_DIR/%{name}-%{version} %post systemctl daemon-reload +%postun +CONF_DIR=%{_sysconfdir}/keentune/conf +if [ "$(ls -A $CONF_DIR)" = "" ]; then + rm -rf $CONF_DIR +fi + +rm -rf %{_sysconfdir}/keentune/script + +ROOT_DIR=%{_sysconfdir}/keentune +if [ "$(ls -A $ROOT_DIR)" = "" ]; then + rm -rf $ROOT_DIR +fi + %files %defattr(0444,root,root, 0555) %attr(0555, root, root) /usr/bin/keentune @@ -67,6 +80,12 @@ systemctl daemon-reload %{_prefix}/lib/systemd/system/keentuned.service %changelog +* Fri Jan 28 2022 Runzhe Wang <15501019889@126.com> - 1.0.1-2 +- Add baseline reading before init brain +- Supporting multiple param json for tuning +- Fix rollback failure +- Clean empty dir when uninstall + * Wed Jan 01 2022 Runzhe Wang <15501019889@126.com> - 1.0.1-1 - Verify input arguments of command 'param tune' - Supporting of multiple target tuning