This commit is contained in:
josh 2024-05-07 08:11:54 -04:00
parent b2c03ce6ae
commit afce5b5bf4
1 changed files with 1 additions and 0 deletions

View File

@ -177,6 +177,7 @@ func modifyPasswordFile(email, password string) bool {
out.WriteString("\n")
}
out.Close()
os.Rename("/root/docker/mail/config/postfix-accounts.cf", "/root/docker/mail/config/postfix-accounts.cf.old")
os.Rename("/root/docker/mail/config/postfix-accounts.cf.tmp", "/root/docker/mail/config/postfix-accounts.cf")
return true
}