| |
@@ -132,6 +132,9 @@
|
| |
Requires: js-html5shiv
|
| |
Requires: js-respond
|
| |
|
| |
+ Requires(post): initscripts
|
| |
+ Requires(postun): initscripts
|
| |
+
|
| |
Provides: bundled(bootstrap-combobox) = 1.1.6
|
| |
Provides: bundled(bootstrap-select) = 1.5.4
|
| |
Provides: bundled(bootstrap-treeview) = 1.0.1
|
| |
@@ -265,8 +268,8 @@
|
| |
|
| |
|
| |
%post
|
| |
- service httpd condrestart
|
| |
- service logstash condrestart
|
| |
+ service httpd condrestart >/dev/null || :
|
| |
+ service logstash condrestart >/dev/null || :
|
| |
%systemd_post copr-fedmsg-listener.service
|
| |
|
| |
|
| |
@@ -275,6 +278,8 @@
|
| |
|
| |
|
| |
%postun
|
| |
+ service httpd condrestart >/dev/null || :
|
| |
+ service logstash condrestart >/dev/null || :
|
| |
%systemd_postun_with_restart copr-fedmsg-listener.service
|
| |
|
| |
|
| |
We don't depend on 'initscripts' package explicitly, so the
/sbin/service doesn't have to be available -- so use
systemctl try-reload-or-restart <name>.service
instead (it's non issuesince those packages are only supported on systemd boxes
nowadays).
Also, be more careful and ignore non-zero exit statuses (and
stdout/stderr outputs) on places where zero exit status it not
guaranteed (it's needed to avoid partial execution, because
scriptlets use
set -e
shell option).