# Check if node isn't already registered
. /etc/eucalyptus/eucalyptus.conf
for nip in "$NODES"; do
if [ "${nip# }" == "${IP}" ]; then
reglog "Node $IP is already registered."
exit 1
fi
done
This code doesn't support /var/lib/eucalyptus/nodes.list, but it seems like it should ...
One thing we noticed in debian/ registration/ node:
# Check if node isn't already registered /eucalyptus. conf
. /etc/eucalyptus
for nip in "$NODES"; do
if [ "${nip# }" == "${IP}" ]; then
reglog "Node $IP is already registered."
exit 1
fi
done
This code doesn't support /var/lib/ eucalyptus/ nodes.list, but it seems like it should ...