move restic binary into /usr/bin so it's in PATH

Signed-off-by: Steve Kriss <steve@heptio.com>
This commit is contained in:
Steve Kriss
2018-06-19 11:30:57 -07:00
parent 01b5828ee7
commit de12ca4882
2 changed files with 3 additions and 3 deletions

View File

@@ -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

View File

@@ -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 != "" {