This was dumb idea, one must fill content for the key to be generated, not good

in post phase...

OBS-URL: https://build.opensuse.org/package/show/KDE:Extra/quassel?expand=0&rev=51
This commit is contained in:
Tomáš Chvátal 2016-11-27 16:26:30 +00:00 committed by Git OBS Bridge
parent 7f8f3ae52d
commit 7a87d4093f
2 changed files with 0 additions and 13 deletions

View File

@ -1,9 +1,3 @@
-------------------------------------------------------------------
Sun Nov 27 16:21:15 UTC 2016 - tchvatal@suse.com
- Generate basic SSL pem certificate on the quasselcore install time
* I suppose it is better than having the first setup run without SSL
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Aug 25 19:00:04 UTC 2016 - tchvatal@suse.com Thu Aug 25 19:00:04 UTC 2016 - tchvatal@suse.com

View File

@ -136,7 +136,6 @@ Requires: libqt5_sql_backend
Requires: logrotate Requires: logrotate
Requires(pre): %fillup_prereq Requires(pre): %fillup_prereq
Requires(pre): pwdutils Requires(pre): pwdutils
Requires(post): openssl
Recommends: libqt5-sql-sqlite Recommends: libqt5-sql-sqlite
%description core %description core
@ -216,12 +215,6 @@ install -D -m 644 %{SOURCE4} %{buildroot}%{_sysconfdir}/sysconfig/SuSEfirewall2.
%post core %post core
%{fillup_only -n quasselcore} %{fillup_only -n quasselcore}
%service_add_post quasselcore.service %service_add_post quasselcore.service
# generate the ssl certificate if not present
ssl_cert="%{_localstatedir}/lib/%{name}core/quasselCert.pem"
if [ ! -f "$ssl_cert" ]; then
openssl req -x509 -nodes -days 365 -newkey rsa:4096 -keyout \
$ssl_cert -out $ssl_cert
fi
%preun core %preun core
%service_del_preun quasselcore.service %service_del_preun quasselcore.service