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:
parent
b6e4d2e1b0
commit
c9bafdd154
@ -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
|
Thu Aug 25 19:00:04 UTC 2016 - tchvatal@suse.com
|
||||||
|
|
||||||
|
@ -136,6 +136,7 @@ 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
|
||||||
@ -215,6 +216,12 @@ 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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user