We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a166ff2 + 1639bbc commit 7d41873Copy full SHA for 7d41873
pkg/flypg/repmgr.go
@@ -72,7 +72,7 @@ func (r *RepMgr) NewRemoteConnection(ctx context.Context, hostname string) (*pgx
72
func (r *RepMgr) initialize() error {
73
r.setDefaults()
74
75
- f, err := os.OpenFile(r.ConfigPath, os.O_APPEND|os.O_WRONLY|os.O_CREATE, 0600)
+ f, err := os.OpenFile(r.ConfigPath, os.O_APPEND|os.O_WRONLY|os.O_CREATE|os.O_TRUNC, 0600)
76
if err != nil {
77
return nil
78
}
0 commit comments