Fixing some packaging issues, make should start services.

This commit is contained in:
Gregory Kurtzer
2021-03-06 18:02:25 -08:00
parent ae37d337c8
commit 8d24496e97
2 changed files with 5 additions and 8 deletions

View File

@@ -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

View File

@@ -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