Accepting request 749107 from network:ha-clustering:Factory

OBS-URL: https://build.opensuse.org/request/show/749107
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/corosync?expand=0&rev=65
This commit is contained in:
Dominique Leuenberger 2019-11-18 19:07:28 +00:00 committed by Git OBS Bridge
commit eb07dec411
2 changed files with 13 additions and 13 deletions

View File

@ -4,6 +4,7 @@ Thu Nov 7 06:26:20 UTC 2019 - Yuan Ren <yren@suse.com>
- Packaging bug updating Corosync(bsc#1155792) - Packaging bug updating Corosync(bsc#1155792)
Some noisy output from Tumbleweed caused by RPM macro not fairly used Some noisy output from Tumbleweed caused by RPM macro not fairly used
Make sure corosync sysconfig keep original configured firstly(bsc1153502) Make sure corosync sysconfig keep original configured firstly(bsc1153502)
Store the tmp file to a more security directory
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Oct 9 07:55:48 UTC 2019 - Yuan Ren <yren@suse.com> Wed Oct 9 07:55:48 UTC 2019 - Yuan Ren <yren@suse.com>

View File

@ -15,7 +15,6 @@
# Please submit bugfixes or comments via https://bugs.opensuse.org/ # Please submit bugfixes or comments via https://bugs.opensuse.org/
# #
#Compat macro for new _fillupdir macro introduced in Nov 2017 #Compat macro for new _fillupdir macro introduced in Nov 2017
%if ! %{defined _fillupdir} %if ! %{defined _fillupdir}
%define _fillupdir /var/adm/fillup-templates %define _fillupdir /var/adm/fillup-templates
@ -258,9 +257,9 @@ APIs and libraries, default configuration files, and an init script.
/usr/lib/corosync/upgrade.sh /usr/lib/corosync/upgrade.sh
%{fillup_only -n corosync} %{fillup_only -n corosync}
# Upgrade # Upgrade
if [ $1 -eq 2 ] ; then if [ $1 -eq 2 ]; then
# restore configured /etc/sysconfig/corosync(bsc#1155792) # restore configured /etc/sysconfig/corosync(bsc#1155792)
install -m 0644 %{_sysconfdir}/sysconfig/corosync /tmp/.sysconfig.corosync cp %{_sysconfdir}/sysconfig/corosync %{_fillupdir}/tmp.corosync_sysconfig
fi fi
%service_add_post corosync.service corosync-notifyd.service %service_add_post corosync.service corosync-notifyd.service
@ -278,8 +277,8 @@ if [ -f %{_sysconfdir}/sysconfig/corosync ]; then
fi fi
%posttrans %posttrans
if [ ! -f %{_sysconfdir}/sysconfig/corosync ] ; then if [ ! -f %{_sysconfdir}/sysconfig/corosync ]; then
install -m 0644 /tmp/.sysconfig.corosync %{_sysconfdir}/sysconfig/corosync mv %{_fillupdir}/tmp.corosync_sysconfig %{_sysconfdir}/sysconfig/corosync
fi fi
%files %files
@ -583,8 +582,8 @@ NSS certificates and an init script.
%post -n corosync-qdevice %post -n corosync-qdevice
%{fillup_only -n corosync-qdevice} %{fillup_only -n corosync-qdevice}
# Upgrade # Upgrade
if [ $1 -eq 2 ] ; then if [ $1 -eq 2 ]; then
install -m 0644 %{_sysconfdir}/sysconfig/corosync-qdevice /tmp/.sysconfig.corosync-qdevice cp %{_sysconfdir}/sysconfig/corosync-qdevice %{_fillupdir}/tmp.corosync-qdevice_sysconfig
fi fi
%if %{sles_version} > 0 %if %{sles_version} > 0
@ -607,8 +606,8 @@ if [ -f %{_sysconfdir}/sysconfig/corosync-qdevice ]; then
fi fi
%posttrans -n corosync-qdevice %posttrans -n corosync-qdevice
if [ ! -f %{_sysconfdir}/sysconfig/corosync-qdevice ] ; then if [ ! -f %{_sysconfdir}/sysconfig/corosync-qdevice ]; then
install -m 0644 /tmp/.sysconfig.corosync-qdevice %{_sysconfdir}/sysconfig/corosync-qdevice mv %{_fillupdir}/tmp.corosync-qdevice_sysconfig %{_sysconfdir}/sysconfig/corosync-qdevice
fi fi
%files -n corosync-qdevice %files -n corosync-qdevice
@ -664,8 +663,8 @@ ln -s /run/corosync-qnetd /var/run/
%endif %endif
%{fillup_only -n corosync-qnetd} %{fillup_only -n corosync-qnetd}
# Upgrade # Upgrade
if [ $1 -eq 2 ] ; then if [ $1 -eq 2 ]; then
install -m 0644 %{_sysconfdir}/sysconfig/corosync-qnetd /tmp/.sysconfig.corosync-qnetd cp %{_sysconfdir}/sysconfig/corosync-qnetd %{_fillupdir}/tmp.corosync-qnetd_sysconfig
fi fi
%service_add_post corosync-qnetd.service %service_add_post corosync-qnetd.service
@ -685,8 +684,8 @@ if [ -f %{_sysconfdir}/sysconfig/corosync-qnetd ]; then
fi fi
%posttrans -n corosync-qnetd %posttrans -n corosync-qnetd
if [ ! -f %{_sysconfdir}/sysconfig/corosync-qnetd ] ; then if [ ! -f %{_sysconfdir}/sysconfig/corosync-qnetd ]; then
install -m 0644 /tmp/.sysconfig.corosync-qnetd %{_sysconfdir}/sysconfig/corosync-qnetd mv %{_fillupdir}/tmp.corosync-qnetd_sysconfig %{_sysconfdir}/sysconfig/corosync-qnetd
fi fi
%files -n corosync-qnetd %files -n corosync-qnetd