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

This commit is contained in:
Adrien Bourmault 2023-11-30 20:39:19 +01:00
parent 2679055c05
commit 046ef438c2
1 changed files with 2 additions and 1 deletions

View File

@ -27,6 +27,7 @@ jobs:
/usr/bin/named-checkzone "$domain" "$file" || echo "Error on file $file" && continue
echo "$file" >> /var/cache/bind/.modified
rsync "$file" /var/cache/bind/
echo "Move $file to /var/cache/bind"
done
echo "Synced sucessfully"
@ -51,7 +52,7 @@ jobs:
fi
count=$(cat /var/cache/bind/.modified | wc -l)
linecount=$(( count * 5 + 3))
linecount=$(( count * 5 + 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