From de12ca48825db5da3715b754db3bee62ac110aba Mon Sep 17 00:00:00 2001 From: Steve Kriss Date: Tue, 19 Jun 2018 11:30:57 -0700 Subject: [PATCH] move restic binary into /usr/bin so it's in PATH Signed-off-by: Steve Kriss --- Dockerfile-ark.alpine | 4 ++-- pkg/restic/command.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile-ark.alpine b/Dockerfile-ark.alpine index 46dec1278..e5cd81049 100644 --- a/Dockerfile-ark.alpine +++ b/Dockerfile-ark.alpine @@ -21,8 +21,8 @@ RUN apk add --no-cache ca-certificates RUN apk add --update --no-cache bzip2 && \ wget --quiet https://github.com/restic/restic/releases/download/v0.9.1/restic_0.9.1_linux_amd64.bz2 && \ bunzip2 restic_0.9.1_linux_amd64.bz2 && \ - mv restic_0.9.1_linux_amd64 /restic && \ - chmod +x /restic + mv restic_0.9.1_linux_amd64 /usr/bin/restic && \ + chmod +x /usr/bin/restic ADD /bin/linux/amd64/ark /ark diff --git a/pkg/restic/command.go b/pkg/restic/command.go index ae7165d11..99e0ed321 100644 --- a/pkg/restic/command.go +++ b/pkg/restic/command.go @@ -35,7 +35,7 @@ type Command struct { // StringSlice returns the command as a slice of strings. func (c *Command) StringSlice() []string { - res := []string{"/restic"} + res := []string{"restic"} res = append(res, c.Command, repoFlag(c.RepoPrefix, c.Repo)) if c.PasswordFile != "" {