16306: Merge branch 'master'
[arvados.git] / lib / boot / postgresql.go
index 7661c6b58795e623e3ebac21e99b100b2c474d34..e45c4e16869f47043cc3637afe1f14ca7d57c553 100644 (file)
@@ -36,9 +36,13 @@ func (runPostgreSQL) Run(ctx context.Context, fail func(error), super *Superviso
                return err
        }
 
+       if super.ClusterType == "production" {
+               return nil
+       }
+
        iamroot := false
        if u, err := user.Current(); err != nil {
-               return fmt.Errorf("user.Current(): %s", err)
+               return fmt.Errorf("user.Current(): %w", err)
        } else if u.Uid == "0" {
                iamroot = true
        }