Actualiser .forgejo/workflows/ci.yaml
This commit is contained in:
parent
1a4882752f
commit
4597f5d2f6
|
@ -57,12 +57,14 @@ jobs:
|
||||||
for zone_name in $files; do
|
for zone_name in $files; do
|
||||||
datetime=$(date --iso-8601=seconds)
|
datetime=$(date --iso-8601=seconds)
|
||||||
echo "Vérification de la zone ${zone_name::-5}..."
|
echo "Vérification de la zone ${zone_name::-5}..."
|
||||||
echo Dernière minute...
|
|
||||||
sudo grep named /var/log/syslog | grep ${datetime::-10} | grep ${zone_name::-5}
|
|
||||||
echo Depuis dix minutes...
|
|
||||||
sudo grep named /var/log/syslog | grep ${datetime::-9} | grep ${zone_name::-5}
|
|
||||||
|
|
||||||
sudo grep named /var/log/syslog | grep ${datetime::-9} | grep ${zone_name::-5} | grep loaded || exit 1
|
if [[ $VAR == *":"* ]]; then
|
||||||
|
echo On ne sait pas vérifier ce type de zone
|
||||||
|
else
|
||||||
|
echo Dernière minute...
|
||||||
|
sudo grep named /var/log/syslog | grep ${datetime::-10} | grep ${zone_name::-5}
|
||||||
|
sudo grep named /var/log/syslog | grep ${datetime::-9} | grep ${zone_name::-5} | grep loaded || exit 1
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
echo "Déploiement terminé !"
|
echo "Déploiement terminé !"
|
||||||
|
|
Loading…
Reference in New Issue