[pdm-devel] [RFC proxmox-datacenter-manager 1/5] privileged-api: create /var/cache/proxmox-datacenter-manager/ on startup

Lukas Wagner l.wagner at proxmox.com
Fri Dec 20 15:24:26 CET 2024


Signed-off-by: Lukas Wagner <l.wagner at proxmox.com>
---
 server/src/bin/proxmox-datacenter-privileged-api.rs | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/server/src/bin/proxmox-datacenter-privileged-api.rs b/server/src/bin/proxmox-datacenter-privileged-api.rs
index d4e8817..f8e137f 100644
--- a/server/src/bin/proxmox-datacenter-privileged-api.rs
+++ b/server/src/bin/proxmox-datacenter-privileged-api.rs
@@ -80,6 +80,13 @@ fn create_directories() -> Result<(), Error> {
         0o755,
     )?;
 
+    pdm_config::setup::mkdir_perms(
+        pdm_buildcfg::PDM_CACHE_DIR,
+        api_user.uid,
+        api_user.gid,
+        0o755,
+    )?;
+
     pdm_config::setup::mkdir_perms(
         concat!(pdm_buildcfg::PDM_LOG_DIR_M!(), "/api"),
         api_user.uid,
-- 
2.39.5





More information about the pdm-devel mailing list