diff --git a/main.go b/main.go index 10402a6..1d5c5fd 100644 --- a/main.go +++ b/main.go @@ -25,7 +25,7 @@ var ( FlagStatusAddr = ":8087" FlagExclude []string FlagScratch bool - FlagDefaultFileMode = "0666" + FlagDefaultFileMode = "0664" metricsSyncTime = prometheus.NewGauge(prometheus.GaugeOpts{ Namespace: "objinsync", @@ -168,7 +168,7 @@ func main() { "skip checksums calculation and override all files during the initial sync", ) pullCmd.PersistentFlags().StringVarP( - &FlagDefaultFileMode, "default-file-mode", "m", "0666", "default mode to use for creating local file") + &FlagDefaultFileMode, "default-file-mode", "m", "0664", "default mode to use for creating local file") rootCmd.AddCommand(pullCmd) rootCmd.Execute() diff --git a/pkg/sync/pull.go b/pkg/sync/pull.go index c04be8b..59c83e1 100644 --- a/pkg/sync/pull.go +++ b/pkg/sync/pull.go @@ -461,7 +461,7 @@ func NewPuller(remoteUri string, localDir string) (*Puller, error) { RemoteUri: remoteUri, LocalDir: localDir, workingDir: filepath.Join(localDir, ".objinsync"), - defaultMode: 0666, + defaultMode: 0664, workerCnt: 5, uidCache: map[string]string{}, uidLock: &sync.Mutex{},