From 62aa0575c7514ffdc46035c8bae9837217024ef0 Mon Sep 17 00:00:00 2001 From: Stefan Majer Date: Sun, 20 Aug 2023 14:56:37 +0200 Subject: [PATCH] fix --- cmd/internal/database/postgres/postgres.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/internal/database/postgres/postgres.go b/cmd/internal/database/postgres/postgres.go index 9172133..103ec7d 100644 --- a/cmd/internal/database/postgres/postgres.go +++ b/cmd/internal/database/postgres/postgres.go @@ -248,7 +248,7 @@ func (db *Postgres) Upgrade() error { // mkdir /data/postgres-new newDataDirTemp := path.Join("/data", "postgres-new") - err = os.MkdirAll(newDataDirTemp, fs.ModePerm) + err = os.Mkdir(newDataDirTemp, 0700) if err != nil { db.log.Infow("unable to create new datadir, skipping upgrade", "error", err) return nil