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:
parent
7f8f3ae52d
commit
7a87d4093f
@ -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
|
||||
|
||||
|
@ -136,7 +136,6 @@ Requires: libqt5_sql_backend
|
||||
Requires: logrotate
|
||||
Requires(pre): %fillup_prereq
|
||||
Requires(pre): pwdutils
|
||||
Requires(post): openssl
|
||||
Recommends: libqt5-sql-sqlite
|
||||
|
||||
%description core
|
||||
@ -216,12 +215,6 @@ 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
|
||||
|
Loading…
x
Reference in New Issue
Block a user