mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
Summary: VPC router needs /etc/hosts entry
Detail: This adjusts cloud-early-config to properly set the host entry for a vpc router. We were previously using the hostname command prior to the actual hostname being set, now we use the NAME variable passed to us. BUG-ID: CLOUDSTACK-502 Bugfix-for: 4.0.1 Signed-off-by: Marcus Sorensen <marcus@betterservers.com> 1353083661 -0700
This commit is contained in:
parent
6e86fac8e5
commit
b8af4278d0
@ -598,8 +598,7 @@ setup_vpcrouter() {
|
||||
fi
|
||||
|
||||
if [ -f /etc/hosts ]; then
|
||||
host=`hostname -s`;
|
||||
grep -q $host /etc/hosts || echo "127.0.0.1 $host" >> /etc/hosts;
|
||||
grep -q $NAME /etc/hosts || echo "127.0.0.1 $NAME" >> /etc/hosts;
|
||||
fi
|
||||
|
||||
cat > /etc/network/interfaces << EOF
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user