redondance dans le controle de hostname

This commit is contained in:
Cédric Abonnel 2025-03-13 06:45:21 +01:00
parent 0c5f0e9770
commit 58bbe9051d
1 changed files with 3 additions and 7 deletions
scripts/server-dhcp

View File

@ -80,13 +80,9 @@ for HOSTNAME in "${HOSTNAMES[@]}"; do
if is_hostname_registered "$HOSTNAME"; then
echo "L'association $HOSTNAME -> $IP existe déjà."
else
if is_hostname_registered "$HOSTNAME"; then
echo "L'association $HOSTNAME -> $IP existe déjà."
else
echo "address=/$HOSTNAME/$IP" >> "$DNSMASQ_CONF"
echo "Ajout de : $HOSTNAME -> $IP"
MODIFIED=1
fi
echo "address=/$HOSTNAME/$IP" >> "$DNSMASQ_CONF"
echo "Ajout de : $HOSTNAME -> $IP"
MODIFIED=1
fi
done