diff --git a/Dockerfile b/Dockerfile index 595f8ca..842dc79 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM ubuntu:17.04 +FROM ubuntu:17.10 ENV GOPATH=/go PATH=/go/bin:/usr/lib/go-1.8/bin:$PATH @@ -19,6 +19,7 @@ RUN apt-get update \ dosfstools \ kpartx \ golang-1.8-go \ + rsync \ && apt-get clean \ && rm -rf /var/lib/apt/lists/* \ && go get \ diff --git a/pkg/pi64/metadata.go b/pkg/pi64/metadata.go index a58fdbd..4117391 100644 --- a/pkg/pi64/metadata.go +++ b/pkg/pi64/metadata.go @@ -24,7 +24,7 @@ func ReadMetadata() (Metadata, error) { } func WriteMetadata(metadata Metadata) error { - file, err := os.OpenFile(metadataPath, os.O_WRONLY|os.O_CREATE|os.O_TRUNC, 644) + file, err := os.OpenFile(metadataPath, os.O_WRONLY|os.O_CREATE|os.O_TRUNC, 0644) if err != nil { return err }