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.
1 parent 234cd08 commit 1639bbcCopy full SHA for 1639bbc
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