fixup hardcoded paths

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller 2020-10-29 15:15:17 +01:00
parent 184a37635b
commit 221177ba41
1 changed files with 2 additions and 2 deletions

View File

@ -10,8 +10,8 @@ use proxmox::tools::fs::{open_file_locked, CreateOptions};
use crate::api2::types::Authid;
use crate::auth;
const LOCK_FILE: &str = "/etc/proxmox-backup/token.shadow.lock";
const CONF_FILE: &str = "/etc/proxmox-backup/token.shadow";
const LOCK_FILE: &str = configdir!("/token.shadow.lock");
const CONF_FILE: &str = configdir!("/token.shadow");
const LOCK_TIMEOUT: Duration = Duration::from_secs(5);
#[serde(rename_all="kebab-case")]