suppression demande confirmation ajout non FQDN
This commit is contained in:
parent
a88483a2a2
commit
5631e5a1ad
scripts/server-dhcp
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue