WIP: test CI

This commit is contained in:
Adrien Bourmault 2023-10-25 00:35:17 +02:00
parent 353836a2a8
commit 7be4224f8e
Signed by: neox
GPG Key ID: 2974E1D5F25DFCC8
1 changed files with 8 additions and 7 deletions

View File

@ -49,7 +49,8 @@ jobs:
steps:
- name: Reload bind
shell: bash
run: sudo systemctl reload bind9.service
run: |
sudo systemctl reload bind9.service
- name: Check bind
shell: bash
run: |
@ -59,9 +60,9 @@ jobs:
count=$(cat /var/cache/bind/.modified | wc -l)
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
- 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 "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
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é."