Actualiser .forgejo/workflows/ci.yaml
This commit is contained in:
parent
8edb89260a
commit
f402178309
|
@ -29,6 +29,8 @@ jobs:
|
||||||
rsync "$file" /var/cache/bind/
|
rsync "$file" /var/cache/bind/
|
||||||
echo "Move $file to /var/cache/bind"
|
echo "Move $file to /var/cache/bind"
|
||||||
done
|
done
|
||||||
|
sudo chown bind:bind *.zone
|
||||||
|
sudo chmod g+rw *.zone
|
||||||
echo "Synced sucessfully"
|
echo "Synced sucessfully"
|
||||||
|
|
||||||
|
|
||||||
|
@ -52,7 +54,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 + count + 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