Actualiser .forgejo/workflows/ci.yaml
/ sync (push) Successful in 1s Details
/ deploiement (push) Successful in 0s Details

This commit is contained in:
Adrien Bourmault 2024-04-24 14:58:39 +02:00
parent fc509e1a3a
commit 0188f38ed6
1 changed files with 5 additions and 7 deletions

View File

@ -53,11 +53,9 @@ jobs:
exit 0
fi
count=$(cat /var/cache/bind/.modified | wc -l)
linecount=$(( count * 5 + count + 3 ))
echo "Vérification des zones $files..."
sudo grep named /var/log/syslog | tail -n $linecount | grep "reloading configuration succeeded" || exit 4
sudo grep named /var/log/syslog | tail -n $linecount | grep "reloading zones succeeded" || exit 5
sudo grep named /var/log/syslog | tail -n $linecount | grep "all zones loaded" || exit 6
sudo grep named /var/log/syslog | tail -n $linecount | grep "running" || exit 7
for zone_name in $files; do
datetime=$(date --iso-8601=seconds)
echo "Vérification de la zone $domain..."
sudo grep named /var/log/syslog | grep ${datetime::-10} | grep ${zone_name::-5} | grep loaded || exit 1
echo "Déploiement terminé !"