Fix AUTOCONFIG_REPLICATION_PASSWORD_FILE input
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-04-09 02:50:15 +02:00
parent 38c6b9324a
commit 34943eed1b

View File

@@ -166,7 +166,7 @@ func main() {
replicationPasswordPath := getEnvOrDefault("AUTOCONFIG_REPLICATION_PASSWORD_FILE", "")
if replicationPasswordFile, err := os.Stat(replicationPasswordPath); err == nil && !replicationPasswordFile.IsDir() {
if v, err := os.ReadFile(replicationPasswordPath); err == nil {
state.monitorPassword = string(v)
state.replicationPassword = string(v)
}
}
if state.replicationPassword == "" {