This is an automated email from the ASF dual-hosted git repository.
iwasakims pushed a commit to branch branch-3.2
in repository https://gitbox.apache.org/repos/asf/bigtop.git
The following commit(s) were added to refs/heads/branch-3.2 by this push:
new 91a98a2c1 BIGTOP-4065: Fixing BUG caused by the lack of preun logic in
Flink spec (#1239)
91a98a2c1 is described below
commit 91a98a2c1f79b141bdcfd920bab7a26efeb0fd19
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)
(cherry picked from commit c88e509771386dba1f1489cbca4498d782d1cf87)
---
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 c7243325e..fcf36d438 100644
--- a/bigtop-packages/src/rpm/flink/SPECS/flink.spec
+++ b/bigtop-packages/src/rpm/flink/SPECS/flink.spec
@@ -156,6 +156,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