suppression demande confirmation ajout non FQDN

This commit is contained in:
Cédric Abonnel 2025-03-13 06:31:46 +01:00
parent a88483a2a2
commit 5631e5a1ad
1 changed files with 3 additions and 6 deletions
scripts/server-dhcp

View File

@ -75,12 +75,9 @@ for HOSTNAME in "${HOSTNAMES[@]}"; do
echo "Ajout de : $FQDN -> $IP"
MODIFIED=1
else
read -p "Voulez-vous ajouter uniquement le hostname $HOSTNAME ? (o/n) " REPLY_HOSTNAME
if [[ "$REPLY_HOSTNAME" =~ ^[Oo]$ ]]; then
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
fi
done