Change-Id: Ic831d48dc5eff27a4916004910b0216f90ea4bb3
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/3890
Reviewed-by: Sharath George
Tested-by: Sharath George
... | ... |
@@ -1,7 +1,7 @@ |
1 | 1 |
Summary: Highly reliable distributed coordination |
2 | 2 |
Name: zookeeper |
3 | 3 |
Version: 3.4.10 |
4 |
-Release: 6%{?dist} |
|
4 |
+Release: 7%{?dist} |
|
5 | 5 |
URL: http://zookeeper.apache.org/ |
6 | 6 |
License: Apache License, Version 2.0 |
7 | 7 |
Group: Applications/System |
... | ... |
@@ -62,29 +62,10 @@ getent group hadoop >/dev/null || /usr/sbin/groupadd -r hadoop |
62 | 62 |
getent passwd zookeeper >/dev/null || /usr/sbin/useradd --comment "ZooKeeper" --shell /bin/bash -M -r --groups hadoop --home %{_prefix}/share/zookeeper zookeeper |
63 | 63 |
|
64 | 64 |
%post |
65 |
-if [ $1 -eq 1 ] ; then |
|
66 |
- # Initial installation |
|
67 |
- # Enabled by default per "runs once then goes away" exception |
|
68 |
- bash %{_prefix}/sbin/update-zookeeper-env.sh \ |
|
69 |
- --prefix=%{_prefix} \ |
|
70 |
- --conf-dir=%{_sysconfdir}/zookeeper \ |
|
71 |
- --log-dir=%{_var}/log/zookeeper \ |
|
72 |
- --pid-dir=%{_var}/run/zookeeper \ |
|
73 |
- --var-dir=%{_var}/zookeeper |
|
74 |
-fi |
|
75 | 65 |
%{_sbindir}/ldconfig |
76 | 66 |
%systemd_post zookeeper.service |
77 | 67 |
|
78 | 68 |
%preun |
79 |
-if [ $1 -eq 0 ] ; then |
|
80 |
-bash %{_prefix}/sbin/update-zookeeper-env.sh \ |
|
81 |
- --prefix=%{_prefix} \ |
|
82 |
- --conf-dir=%{_sysconfdir}/zookeeper \ |
|
83 |
- --log-dir=%{_var}/log/zookeeper \ |
|
84 |
- --pid-dir=%{_var}/run/zookeeper \ |
|
85 |
- --var-dir=%{_var}/zookeeper \ |
|
86 |
- --uninstall |
|
87 |
-fi |
|
88 | 69 |
%systemd_preun zookeeper.service |
89 | 70 |
|
90 | 71 |
%postun |
... | ... |
@@ -105,6 +86,8 @@ fi |
105 | 105 |
%{_prefix} |
106 | 106 |
|
107 | 107 |
%changelog |
108 |
+* Wed Sep 27 2017 Harish Udaiya Kumar <hudaiyakumar@vmware.com> 3.4.10-7 |
|
109 |
+- Remove the update script for zookeeper. |
|
108 | 110 |
* Mon Sep 25 2017 Alexey Makhalov <amakhalov@vmware.com> 3.4.10-6 |
109 | 111 |
- Remove shadow from requires and use explicit tools for post actions |
110 | 112 |
* Mon Sep 25 2017 Harish Udaiya Kumar <hudaiyakumar@vmware.com> 3.4.10-5 |