Actualiser .forgejo/workflows/ci.yaml
This commit is contained in:
parent
2679055c05
commit
046ef438c2
|
@ -27,6 +27,7 @@ jobs:
|
||||||
/usr/bin/named-checkzone "$domain" "$file" || echo "Error on file $file" && continue
|
/usr/bin/named-checkzone "$domain" "$file" || echo "Error on file $file" && continue
|
||||||
echo "$file" >> /var/cache/bind/.modified
|
echo "$file" >> /var/cache/bind/.modified
|
||||||
rsync "$file" /var/cache/bind/
|
rsync "$file" /var/cache/bind/
|
||||||
|
echo "Move $file to /var/cache/bind"
|
||||||
done
|
done
|
||||||
echo "Synced sucessfully"
|
echo "Synced sucessfully"
|
||||||
|
|
||||||
|
@ -51,7 +52,7 @@ jobs:
|
||||||
fi
|
fi
|
||||||
|
|
||||||
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
|
||||||
|
|
Loading…
Reference in New Issue