Actualiser .forgejo/workflows/ci.yaml
This commit is contained in:
parent
fc509e1a3a
commit
0188f38ed6
|
@ -53,11 +53,9 @@ jobs:
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
count=$(cat /var/cache/bind/.modified | wc -l)
|
for zone_name in $files; do
|
||||||
linecount=$(( count * 5 + count + 3 ))
|
datetime=$(date --iso-8601=seconds)
|
||||||
echo "Vérification des zones $files..."
|
echo "Vérification de la zone $domain..."
|
||||||
sudo grep named /var/log/syslog | tail -n $linecount | grep "reloading configuration succeeded" || exit 4
|
sudo grep named /var/log/syslog | grep ${datetime::-10} | grep ${zone_name::-5} | grep loaded || exit 1
|
||||||
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
|
|
||||||
echo "Déploiement terminé !"
|
echo "Déploiement terminé !"
|
||||||
|
|
Loading…
Reference in New Issue