On Mon, 2015-08-31 at 17:14 +0200, Martin Kolman wrote:
The gui related systemd scriptlets should be called when the gui
subpackage is being manipulated, not the main package.
Related: rhbz#1181209
Signed-off-by: Martin Kolman <mkolman(a)redhat.com>
---
initial-setup.spec | 12 +++++++++---
1 file changed, 9 insertions(+), 3 deletions(-)
diff --git a/initial-setup.spec b/initial-setup.spec
index 8c8cd0e..08908e1 100644
--- a/initial-setup.spec
+++ b/initial-setup.spec
@@ -71,17 +71,23 @@ make install-po-files
%find_lang %{name}
%post
-%systemd_post initial-setup-graphical.service
%systemd_post initial-setup-text.service
%preun
-%systemd_preun initial-setup-graphical.service
%systemd_preun initial-setup-text.service
%postun
-%systemd_postun_with_restart initial-setup-graphical.service
%systemd_postun_with_restart initial-setup-text.service
+%post gui
+%systemd_post initial-setup-graphical.service
+
+%preun gui
+%systemd_preun initial-setup-graphical.service
+
+%postun gui
+%systemd_postun_with_restart initial-setup-graphical.service
+
%files -f %{name}.lang
%doc COPYING README
%{python_sitelib}/initial_setup*
ACK.
--
Vratislav Podzimek
Anaconda Rider | Red Hat, Inc. | Brno - Czech Republic