Fix systemd unit failing because of missing warewulf group

This commit is contained in:
Brian Clemens
2021-03-04 19:03:45 +09:00
parent 8094e95eee
commit da192d95b6
3 changed files with 5 additions and 4 deletions

View File

@@ -65,8 +65,9 @@ files: all
# restorecon -r /var/lib/tftpboot/warewulf
services: files
# sudo systemctl enable tftp
# sudo systemctl restart tftp
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

View File

@@ -1,6 +1,6 @@
[Unit]
Description=Warewulf cluster management daemon
Documentation=https://warewulf.readthedocs.io
Documentation=https://docs.ctrliq.com/warewulf
After=network-online.target
AssertFileIsExecutable=/usr/bin/wwctl

View File

@@ -24,7 +24,7 @@ make all
%{__make} install DESTDIR=$RPM_BUILD_ROOT %{?mflags_install}
#%pre
#groupadd -r warewulf >/dev/null 2>&1 || :
groupadd -r warewulf >/dev/null 2>&1 || :
%post
%if %{?rhel}%{!?rhel:0} >= 7