ajout FQDN et non FQDN proposé

This commit is contained in:
Cédric Abonnel 2025-03-13 06:44:34 +01:00
parent 9101bf061a
commit 0c5f0e9770
1 changed files with 7 additions and 7 deletions
scripts/server-dhcp

View File

@ -74,19 +74,19 @@ for HOSTNAME in "${HOSTNAMES[@]}"; do
echo "address=/$FQDN/$IP" >> "$DNSMASQ_CONF"
echo "Ajout de : $FQDN -> $IP"
MODIFIED=1
else
echo "address=/$HOSTNAME/$IP" >> "$DNSMASQ_CONF"
echo "Ajout de : $HOSTNAME -> $IP"
MODIFIED=1
fi
fi
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
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
fi
done