We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 65f7c54 commit fdfb7d5Copy full SHA for fdfb7d5
.evergreen/scripts/setup-system.sh
@@ -38,4 +38,14 @@ if [ "$(uname -s)" = "Darwin" ]; then
38
fi
39
40
41
+if [ -w /etc/hosts ]; then
42
+ SUDO=""
43
+else
44
+ SUDO="sudo"
45
+fi
46
+
47
+# Add 'server' and 'hostname_not_in_cert' as a hostnames
48
+echo "127.0.0.1 server" | $SUDO tee -a /etc/hosts
49
+echo "127.0.0.1 hostname_not_in_cert" | $SUDO tee -a /etc/hosts
50
51
echo "Setting up system... done."
0 commit comments