From 6a37883c1e2bb42d41af8961e8f5db8955be755f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Budai?= Date: Mon, 2 Mar 2020 10:06:49 +0100 Subject: [PATCH] spec: move worker-related service units to worker sub-package Prior this commit installing the worker sub-packages shows the following warning: Failed to preset unit: Unit file osbuild-worker@.service does not exist. Moving the unit file to the sub-package fixes it. --- golang-github-osbuild-composer.spec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/golang-github-osbuild-composer.spec b/golang-github-osbuild-composer.spec index 0a0dd2870..cc559cecc 100644 --- a/golang-github-osbuild-composer.spec +++ b/golang-github-osbuild-composer.spec @@ -122,9 +122,7 @@ export GOPATH=$PWD/_build:%{gopath} %{_datadir}/osbuild-composer/ %{_unitdir}/osbuild-composer.service %{_unitdir}/osbuild-composer.socket -%{_unitdir}/osbuild-remote-worker@.service %{_unitdir}/osbuild-remote-worker.socket -%{_unitdir}/osbuild-worker@.service %{_sysusersdir}/osbuild-composer.conf %package rcm @@ -161,6 +159,8 @@ The worker for osbuild-composer %files worker %{_libexecdir}/osbuild-composer/osbuild-worker +%{_unitdir}/osbuild-worker@.service +%{_unitdir}/osbuild-remote-worker@.service %post worker %systemd_post osbuild-worker@.service osbuild-remote-worker@.service