From 8d24496e97036af75f53b226ed2c512c0ec48928 Mon Sep 17 00:00:00 2001 From: Gregory Kurtzer Date: Sat, 6 Mar 2021 18:02:25 -0800 Subject: [PATCH] Fixing some packaging issues, make should start services. --- Makefile | 7 +------ warewulf.spec.in | 6 ++++-- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/Makefile b/Makefile index 61f27956..f9573a43 100644 --- a/Makefile +++ b/Makefile @@ -64,11 +64,6 @@ files: all # cp -r tftpboot/* /var/lib/tftpboot/warewulf/ipxe/ # restorecon -r /var/lib/tftpboot/warewulf -services: files - groupadd -r warewulf - systemctl daemon-reload - systemctl enable --now warewulfd - wwctl: cd cmd/wwctl; go build -mod vendor -tags "$(WW_BUILD_GO_BUILD_TAGS)" -o ../../wwctl @@ -89,4 +84,4 @@ clean: rm -rf _dist rm -f warewulf-$(VERSION).tar.gz -install: files services +install: files diff --git a/warewulf.spec.in b/warewulf.spec.in index 8f8ff836..0f76c3c2 100644 --- a/warewulf.spec.in +++ b/warewulf.spec.in @@ -28,8 +28,10 @@ groupadd -r warewulf >/dev/null 2>&1 || : %post %if %{?rhel}%{!?rhel:0} >= 7 -systemctl start warewulfd >/dev/null 2>&1 || : -systemctl enable warewulfd >/dev/null 2>&1 || : + groupadd -r warewulf >/dev/null 2>&1 || : + systemctl daemon-reload >/dev/null 2>&1 || : + systemctl start warewulfd >/dev/null 2>&1 || : + systemctl enable warewulfd >/dev/null 2>&1 || : %endif %clean