Skip to content

Commit

Permalink
fix: no more Restricted Shell (#772)
Browse files Browse the repository at this point in the history
  • Loading branch information
WaterLemons2k authored Jul 19, 2023
1 parent e009a82 commit 89363a7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 89363a7

Please sign in to comment.