1
0

Added mod=readonly flag. Removed config.yaml from install target.

This commit is contained in:
Alexander Andreev 2023-08-06 03:25:05 +04:00
parent 7a9c673721
commit bf79f77788
Signed by: Arav
GPG Key ID: D22A817D95815393

View File

@ -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}