Fix install.sh to copy all hook scripts automatically
Some checks failed
Deploy Borgmatic Configuration / Deploy to Production Server (push) Has been cancelled
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:
@@ -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}"
|
||||
|
||||
Reference in New Issue
Block a user