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: steps:
- name: Reload bind - name: Reload bind
shell: bash shell: bash
run: sudo systemctl reload bind9.service run: |
sudo systemctl reload bind9.service
- name: Check bind - name: Check bind
shell: bash shell: bash
run: | run: |
@ -59,9 +60,9 @@ jobs:
count=$(cat /var/cache/bind/.modified | wc -l) count=$(cat /var/cache/bind/.modified | wc -l)
linecount=$(( count * 5 + 3)) linecount=$(( count * 5 + 3))
- echo "Vérification des zones $files..." 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 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 "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 "all zones loaded" || exit 6
- sudo grep named /var/log/syslog | tail -n $linecount | grep "running" || exit 7 sudo grep named /var/log/syslog | tail -n $linecount | grep "running" || exit 7
- echo "Déploiement terminé." echo "Déploiement terminé."