Actualiser .forgejo/workflows/ci.yaml
This commit is contained in:
parent
fc509e1a3a
commit
0188f38ed6
|
@ -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é !"
|
||||
|
|
Loading…
Reference in New Issue