deployment: try workaround to solve annoying replication issue

This is getting more and more hilarious, let's see if we can
get this under control using that...

From: Michael Prokop <mprokop@sipwise.com>
ksolomko/vlan
Michael Prokop 13 years ago
parent 27eed530ee
commit 2948dbaa33

@ -870,6 +870,10 @@ EOF
if "$RETRIEVE_MGMT_CONFIG" ; then
echo "Retrieving /etc/hosts configuration from management server"
wget --timeout=30 -O "$TARGET/etc/hosts" "${MANAGEMENT_IP}:3000/hostconfig/$(cat ${TARGET}/etc/hostname)"
echo "# replication workaround" >> $TARGET/etc/hosts
echo "127.0.0.1 $HOSTNAME" >> $TARGET/etc/hosts
echo "# end of replication workaround" >> $TARGET/etc/hosts
fi
if "$PRO_EDITION" ; then

Loading…
Cancel
Save