Add log to post script (temporary, to try to find build failure)

OBS-URL: https://build.opensuse.org/package/show/network:ha-clustering:Factory/csync2?expand=0&rev=27
This commit is contained in:
Tim Serong 2013-09-04 13:55:22 +00:00 committed by Git OBS Bridge
parent ec8ecffa4f
commit 9c47c1e639

View File

@ -101,6 +101,7 @@ touch %{buildroot}%{_sysconfdir}/csync2/csync2_ssl_cert.pem
%post %post
%service_add_post csync2.socket %service_add_post csync2.socket
echo "add post $?"
umask 077 umask 077
if [ ! -f %{_sysconfdir}/csync2/csync2_ssl_key.pem ]; then if [ ! -f %{_sysconfdir}/csync2/csync2_ssl_key.pem ]; then
/usr/bin/openssl genrsa -rand /proc/apm:/proc/cpuinfo:/proc/dma:/proc/filesystems:/proc/interrupts:/proc/ioports:/proc/pci:/proc/rtc:/proc/uptime 1024 > %{_sysconfdir}/csync2/csync2_ssl_key.pem 2>/dev/null /usr/bin/openssl genrsa -rand /proc/apm:/proc/cpuinfo:/proc/dma:/proc/filesystems:/proc/interrupts:/proc/ioports:/proc/pci:/proc/rtc:/proc/uptime 1024 > %{_sysconfdir}/csync2/csync2_ssl_key.pem 2>/dev/null
@ -120,6 +121,7 @@ SomeName
name@example.com name@example.com
EOF EOF
fi fi
echo "cert $?"
%preun %preun
%service_del_preun csync2.socket %service_del_preun csync2.socket