redondance dans le controle de hostname
This commit is contained in:
parent
0c5f0e9770
commit
58bbe9051d
scripts/server-dhcp
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue