mirror of
https://git.proxmox.com/git/proxmox
synced 2026-01-02 17:12:27 +00:00
add fsync parameter to replace_file
Depend on proxmox 0.15.0 Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
This commit is contained in:
parent
d65b2df750
commit
6aa28f0a08
@ -24,5 +24,5 @@ serde = { version = "1.0", features = ["derive"] }
|
||||
serde_json = "1.0"
|
||||
url = "2.1"
|
||||
|
||||
proxmox = "0.14.0"
|
||||
proxmox = "0.15.0"
|
||||
proxmox-time = "1"
|
||||
|
||||
@ -62,7 +62,7 @@ fn replace_auth_state(
|
||||
let options = CreateOptions::new().perm(mode);
|
||||
let raw = serde_json::to_string_pretty(data)?;
|
||||
|
||||
replace_file(path, raw.as_bytes(), options)?;
|
||||
replace_file(path, raw.as_bytes(), options, false)?;
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user