This is an automated email from the ASF dual-hosted git repository.
iwasakims pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/bigtop.git
The following commit(s) were added to refs/heads/master by this push:
new c88e50977 BIGTOP-4065: Fixing BUG caused by the lack of preun logic in
Flink spec (#1239)
c88e50977 is described below
commit c88e509771386dba1f1489cbca4498d782d1cf87
Author: jialiang <[email protected]>
AuthorDate: Wed Feb 28 12:21:05 2024 +0800
BIGTOP-4065: Fixing BUG caused by the lack of preun logic in Flink spec
(#1239)
---
bigtop-packages/src/rpm/flink/SPECS/flink.spec | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/bigtop-packages/src/rpm/flink/SPECS/flink.spec
b/bigtop-packages/src/rpm/flink/SPECS/flink.spec
index 818d71506..ec52e30f1 100644
--- a/bigtop-packages/src/rpm/flink/SPECS/flink.spec
+++ b/bigtop-packages/src/rpm/flink/SPECS/flink.spec
@@ -154,6 +154,11 @@ getent passwd flink >/dev/null || useradd -c "Flink" -s
/sbin/nologin -g flink -
%post
%{alternatives_cmd} --install %{np_etc_flink}/conf %{flink_name}-conf
%{etc_flink}/conf.dist 30
+%preun
+if [ "$1" = 0 ]; then
+ %{alternatives_cmd} --remove %{flink_name}-conf %{etc_flink}/conf.dist
|| :
+fi
+
###### FILES ###########
%files