From bf79f77788fb565515d198c4c2046f7091fb2713 Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Sun, 6 Aug 2023 03:25:05 +0400 Subject: [PATCH] Added mod=readonly flag. Removed config.yaml from install target. --- Makefile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 0d8e990..1332446 100755 --- a/Makefile +++ b/Makefile @@ -8,7 +8,7 @@ PREFIX:=/usr/local VERSION=23.31.0 -FLAGS:=-modcacherw -trimpath +FLAGS:=-modcacherw -mod=readonly -trimpath LDFLAGS:= -ldflags "-s -w -X main.version=${VERSION}" -tags osusergo,netgo all: web/*.pug.go ${TARGET} @@ -27,7 +27,6 @@ run: install: install -Dm 0755 bin/${TARGET} ${DESTDIR}${PREFIX}/bin/${TARGET} install -Dm 0755 tools/radioctl ${DESTDIR}${PREFIX}/bin/${TARGET}ctl - install -Dm 0644 configs/config.yaml ${DESTDIR}/etc/dwelling/radio.yaml install -Dm 0644 configs/radio.liq ${DESTDIR}/etc/dwelling/radio.liq install -Dm 0644 configs/radio.vars.liq ${DESTDIR}/etc/dwelling/radio.vars.liq install -Dm 0644 configs/logrotate ${DESTDIR}/etc/logrotate.d/${TARGET}