Skip to content

Commit

Permalink
Merge pull request #591 from mslacken/fixNM
Browse files Browse the repository at this point in the history
NetworkManager config needs to be 600
  • Loading branch information
mslacken committed Dec 15, 2022
2 parents f118282 + 64cb589 commit c7a5044
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ $(GOLANGCI_LINT):
setup: vendor $(TOOLS_DIR) setup_tools

vendor:
ifndef OFFLINE_BUILD
ifndef OFFLINE_BUILD
go mod tidy -v
go mod vendor
endif
Expand All @@ -125,7 +125,7 @@ $(TOOLS_DIR):

# Pre-build steps for source, such as "go generate"
config:
# Store configuration for subsequent runs
# Store configuration for subsequent runs
printf " $(foreach V,$(VARLIST),$V := $(strip $($V))\n)" > Defaults.mk
# Global variable search and replace for all *.in files
find . -type f -name "*.in" -not -path "./vendor/*" \
Expand Down Expand Up @@ -186,6 +186,7 @@ files: all
find $(DESTDIR)$(WWOVERLAYDIR) -type f -name "*.in" -exec rm -f {} \;
chmod 755 $(DESTDIR)$(WWOVERLAYDIR)/wwinit/$(WWCLIENTDIR)/wwinit
chmod 600 $(DESTDIR)$(WWOVERLAYDIR)/wwinit/etc/ssh/ssh*
chmod 600 $(DESTDIR)$(WWOVERLAYDIR)/wwinit/etc/NetworkManager/system-connections/ww4-managed.ww
chmod 644 $(DESTDIR)$(WWOVERLAYDIR)/wwinit/etc/ssh/ssh*.pub.ww
chmod 750 $(DESTDIR)$(WWOVERLAYDIR)/host
install -m 0755 wwctl $(DESTDIR)$(BINDIR)
Expand Down

0 comments on commit c7a5044

Please sign in to comment.