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

This commit is contained in:
Adrien Bourmault 2024-04-24 15:19:37 +02:00
parent 1a4882752f
commit 4597f5d2f6
1 changed files with 7 additions and 5 deletions

View File

@ -57,12 +57,14 @@ jobs:
for zone_name in $files; do
datetime=$(date --iso-8601=seconds)
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
echo "Déploiement terminé !"