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

This commit is contained in:
Adrien Bourmault 2023-11-30 21:04:48 +01:00
parent 8edb89260a
commit f402178309
1 changed files with 3 additions and 1 deletions

View File

@ -29,6 +29,8 @@ jobs:
rsync "$file" /var/cache/bind/
echo "Move $file to /var/cache/bind"
done
sudo chown bind:bind *.zone
sudo chmod g+rw *.zone
echo "Synced sucessfully"
@ -52,7 +54,7 @@ jobs:
fi
count=$(cat /var/cache/bind/.modified | wc -l)
linecount=$(( count * 5 + 3 ))
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