]> git.proxmox.com Git - proxmox-backup.git/commitdiff
fixup hardcoded paths
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Thu, 29 Oct 2020 14:15:17 +0000 (15:15 +0100)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Thu, 29 Oct 2020 14:15:17 +0000 (15:15 +0100)
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
src/config/token_shadow.rs

index 4033450bd3b2570abd530e32dcfdd06319ee4dd5..26516454e3e9401c7512d63119d8a2237539f01e 100644 (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")]