diff --git a/Dockerfile b/Dockerfile index 6ac669ed9..436602be5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,7 +14,6 @@ LABEL name=ddns-go LABEL url=https://github.com/jeessy2/ddns-go WORKDIR /app -RUN apk add --no-cache bash COPY --from=builder /usr/share/zoneinfo /usr/share/zoneinfo ENV TZ=Asia/Shanghai COPY --from=builder /app/ddns-go /app/ddns-go diff --git a/config/config.go b/config/config.go index 6a327b132..cd2caf8bf 100755 --- a/config/config.go +++ b/config/config.go @@ -231,7 +231,7 @@ func (conf *DnsConfig) getAddrFromCmd(addrType string) string { if err != nil { execCmd = exec.Command("sh", "-c", cmd) } else { - execCmd = exec.Command("bash", "-rc", cmd) + execCmd = exec.Command("bash", "-c", cmd) } } // run cmd