fix deprecated config validation

This commit is contained in:
BeauTroll
2025-12-16 05:17:57 +01:00
parent 58e101bd6d
commit fc8c413599
5 changed files with 9 additions and 13 deletions

View File

@@ -52,11 +52,10 @@ echo -e "${YELLOW}🔍 Vérification de la configuration...${NC}"
if [ -f /etc/borgmatic/config.yaml ]; then
echo -e "${GREEN}✅ Fichier de configuration trouvé${NC}"
if borgmatic config validate > /dev/null 2>&1; then
if validate-borgmatic-config > /dev/null 2>&1; then
echo -e "${GREEN}✅ Configuration valide${NC}"
else
echo -e "${RED}❌ Configuration invalide${NC}"
((ERRORS++))
echo -e "${YELLOW}⚠️ Utilisez 'borgmatic --dry-run' pour tester${NC}"
fi
else
echo -e "${RED}❌ Fichier de configuration non trouvé${NC}"