Fix install.sh to copy all hook scripts automatically
Some checks failed
Deploy Borgmatic Configuration / Deploy to Production Server (push) Has been cancelled

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 <noreply@anthropic.com>
This commit is contained in:
BeauTroll
2025-12-18 17:34:46 +01:00
parent 21355eceff
commit 96cb54d1c6

View File

@@ -127,9 +127,8 @@ echo -e "${YELLOW}📋 Copie des fichiers de configuration...${NC}"
cp config.yaml /etc/borgmatic/config.yaml cp config.yaml /etc/borgmatic/config.yaml
chmod 600 /etc/borgmatic/config.yaml chmod 600 /etc/borgmatic/config.yaml
# Scripts de hooks # Scripts de hooks - copier tous les fichiers .sh
cp hooks/ntfy-success.sh /etc/borgmatic/hooks/ cp hooks/*.sh /etc/borgmatic/hooks/
cp hooks/ntfy-error.sh /etc/borgmatic/hooks/
chmod +x /etc/borgmatic/hooks/*.sh chmod +x /etc/borgmatic/hooks/*.sh
echo -e "${GREEN}✅ Fichiers de configuration copiés${NC}" echo -e "${GREEN}✅ Fichiers de configuration copiés${NC}"