SHA256
1
0
forked from pool/quassel

- Generate basic SSL pem certificate on the quasselcore install time

* I suppose it is better than having the first setup run without SSL

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

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
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

View File

@ -136,6 +136,7 @@ Requires: libqt5_sql_backend
Requires: logrotate
Requires(pre): %fillup_prereq
Requires(pre): pwdutils
Requires(post): openssl
Recommends: libqt5-sql-sqlite
%description core
@ -215,6 +216,12 @@ install -D -m 644 %{SOURCE4} %{buildroot}%{_sysconfdir}/sysconfig/SuSEfirewall2.
%post core
%{fillup_only -n quasselcore}
%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
%service_del_preun quasselcore.service