From 221177ba41e48e932753a37ff5f79994184fcb5a Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Thu, 29 Oct 2020 15:15:17 +0100 Subject: [PATCH] fixup hardcoded paths Signed-off-by: Wolfgang Bumiller --- src/config/token_shadow.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/config/token_shadow.rs b/src/config/token_shadow.rs index 4033450b..26516454 100644 --- a/src/config/token_shadow.rs +++ b/src/config/token_shadow.rs @@ -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")]