Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
hezhuozhuo committed Apr 3, 2023
1 parent 2645091 commit cb55e20
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ FROM alpine:3.12
WORKDIR /gmqttd
COPY --from=builder /go/src/github.com/ThingsPanel/gmqtt/build/gmqttd .
RUN mkdir /etc/gmqtt
COPY ./cmd/gmqttd/default_config.yml /etc/gmqtt/gmqttd.yml
COPY ./cmd/gmqttd/default_config.yml /gmqttd/gmqttd.yml
COPY ./cmd/gmqttd/gmqtt_password.yml /gmqttd/gmqtt_password.yml
ENV PATH=$PATH:/gmqttd
RUN chmod +x gmqttd
Expand Down
3 changes: 2 additions & 1 deletion cmd/gmqttd/config_unix.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
//go:build !windows
// +build !windows

package main

var (
DefaultConfigDir = "/etc/gmqtt"
DefaultConfigDir = "/gmqttd"
)

func getDefaultConfigDir() (string, error) {
Expand Down

0 comments on commit cb55e20

Please sign in to comment.