Fix systemd unit failing because of missing warewulf group
This commit is contained in:
5
Makefile
5
Makefile
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user