Fixing some packaging issues, make should start services.
This commit is contained in:
7
Makefile
7
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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user