From 96cb54d1c674287b957d350f1cd7594635f25a2e Mon Sep 17 00:00:00 2001 From: BeauTroll <-> Date: Thu, 18 Dec 2025 17:34:46 +0100 Subject: [PATCH] Fix install.sh to copy all hook scripts automatically MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Update hook installation to use wildcard pattern instead of hardcoded file names, ensuring all current and future hooks are copied. Changes: - Replace individual cp commands with cp hooks/*.sh pattern - Automatically includes ntfy and uptime-kuma hooks - More maintainable for future hook additions 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 --- install.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/install.sh b/install.sh index e216224..e0acaa9 100755 --- a/install.sh +++ b/install.sh @@ -127,9 +127,8 @@ echo -e "${YELLOW}📋 Copie des fichiers de configuration...${NC}" cp config.yaml /etc/borgmatic/config.yaml chmod 600 /etc/borgmatic/config.yaml -# Scripts de hooks -cp hooks/ntfy-success.sh /etc/borgmatic/hooks/ -cp hooks/ntfy-error.sh /etc/borgmatic/hooks/ +# Scripts de hooks - copier tous les fichiers .sh +cp hooks/*.sh /etc/borgmatic/hooks/ chmod +x /etc/borgmatic/hooks/*.sh echo -e "${GREEN}✅ Fichiers de configuration copiés${NC}"