diff --git a/Makefile b/Makefile index 441aaab..51d7864 100644 --- a/Makefile +++ b/Makefile @@ -17,7 +17,7 @@ build: rm -rf ${BINARY_DIR} mkdir ${BINARY_DIR} env GOOS=linux CGO_ENABLED=0 GOARCH=amd64 go build -o ./${BINARY_DIR}/${BINARY_NAME} main.go -build_raspi: +build_freebsd: rm -rf ${BINARY_DIR} mkdir ${BINARY_DIR} env GOOS=freebsd CGO_ENABLED=0 GOARCH=arm64 ENV=prod go build -o ./${BINARY_DIR}/${BINARY_NAME} main.go diff --git a/cfg/cfg.go b/cfg/cfg.go index 6e8f538..44dcd11 100644 --- a/cfg/cfg.go +++ b/cfg/cfg.go @@ -12,6 +12,7 @@ type Config struct { AdminUser string `required:"true" split_words:"true"` Password string `required:"true" split_words:"true"` LogFile bool `required:"true" split_words:"true"` + Bin string `required:"true" split_words:"true"` } func NewConfig(envFilePath string) *Config {