Skip to content

Commit

Permalink
Fix bin name. Fix template path
Browse files Browse the repository at this point in the history
  • Loading branch information
raoulh authored Jul 19, 2023
1 parent ac0d52f commit 31a6fe9
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
GOCMD=go
GOTEST=$(GOCMD) test
GOVET=$(GOCMD) vet
BINARY_NAME=calaos-ddns
BINARY_NAME=calaos_ddns
VERSION?=1.0.0

GREEN := $(shell tput -Txterm setaf 2)
Expand Down
2 changes: 1 addition & 1 deletion debian/calaos-ddns.install
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
bin/calaos-ddns usr/bin
bin/calaos_ddns usr/bin
haproxy/haproxy.template usr/share/calaos-ddns
3 changes: 2 additions & 1 deletion debian/calaos-ddns.service
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ ExecStart=/usr/bin/calaos_ddns update
Environment="HOME=/home/root"
Environment="CALAOS_HAPROXY_PATH=/mnt/calaos/haproxy"
Environment="CALAOS_CERT_FILE=/mnt/calaos/ssl/haproxy"
Environment="CALAOS_CONFIG=/mnt/calaos/config"
Environment="CALAOS_CONFIG=/mnt/calaos/config"
Environment="CALAOS_HAPROXY_TEMPLATE_PATH=/usr/share/calaos-ddns"
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ func cmdRegister(cmd *cli.Cmd) {
fmt.Println(errorRed(CharAbort), "Failed to write certificate:", err)
}

templateFile := filepath.Join(env.GetOrDefaultString("CALAOS_HAPROXY_PATH", "/etc/haproxy"), "haproxy.template")
templateFile := filepath.Join(env.GetOrDefaultString("CALAOS_HAPROXY_TEMPLATE_PATH", "/etc/haproxy"), "haproxy.template")
outFile := filepath.Join(env.GetOrDefaultString("CALAOS_HAPROXY_PATH", "/etc/haproxy"), "haproxy.cfg")
err = haproxy.RenderConfig(outFile, templateFile, haconf)
if err != nil {
Expand Down

0 comments on commit 31a6fe9

Please sign in to comment.