Skip to content

Commit d9e92de

Browse files
author
enoch85
committed
Merge branch 'master' of https://github.com/enoch85/wordpress-vm
2 parents 3e0c7e4 + 8c173a2 commit d9e92de

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

static/ip.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,19 @@ NETMASK=$($IFCONFIG | grep -w inet |grep -v 127.0.0.1| awk '{print $4}' | cut -d
99
GATEWAY=$(route -n|grep "UG"|grep -v "UGH"|cut -f 10 -d " ")
1010

1111
cat <<-IPCONFIG > "$INTERFACES"
12-
auto lo $IFACE
12+
source /etc/network/interfaces.d/*
1313
14+
# The loopback network interface
15+
auto lo $IFACE
1416
iface lo inet loopback
1517
18+
# The primary network interface
1619
iface $IFACE inet static
1720
pre-up /sbin/ethtool -K $IFACE tso off
1821
pre-up /sbin/ethtool -K $IFACE gso off
1922
23+
# Best practice is to change the static address
24+
# to something outside your DHCP range.
2025
address $ADDRESS
2126
netmask $NETMASK
2227
gateway $GATEWAY

wordpress-startup-script.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,7 @@ wget -q --spider http://github.com
3636
else
3737
echo
3838
echo "Network NOT OK. You must have a working Network connection to run this script."
39-
echo "You could try to change network settings of this VM to 'Bridged Mode'".
40-
echo "If that doesn't help, please try to un-check 'Replicate physical host' in"
41-
echo "the network settings of the VM."
39+
echo "Please report this to: https://github.com/enoch85/wordpress-vm/issues/new"
4240
exit 1
4341
fi
4442

0 commit comments

Comments
 (0)