From 3c2bcc0ce2bb173f1a8b57533618fa94c167fd92 Mon Sep 17 00:00:00 2001 From: SFG545 Date: Sun, 1 Mar 2026 13:46:44 -0600 Subject: [PATCH] fix: update hook file path to correct directory location --- src/install/hooks.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/install/hooks.rs b/src/install/hooks.rs index be195a9..e021b9f 100644 --- a/src/install/hooks.rs +++ b/src/install/hooks.rs @@ -1,6 +1,6 @@ //! Transaction hook loading and execution. //! -//! Hook files live under `/etc/depot.d/hooks/*.toml` and follow a +//! Hook files live under `/usr/share/depot.d/hooks/*.toml` and follow a //! Starpack-inspired format: //! //! ```toml @@ -29,7 +29,7 @@ use std::io::Write; use std::path::{Path, PathBuf}; use std::process::{Command, ExitStatus, Stdio}; -const TRANSACTION_HOOKS_DIR_REL: &str = "etc/depot.d/hooks"; +const TRANSACTION_HOOKS_DIR_REL: &str = "usr/share/depot.d/hooks"; /// Hook phase within an install/update/remove transaction. #[derive(Debug, Clone, Copy, PartialEq, Eq)]