diff options
Diffstat (limited to 'node-admin/scripts/setup-route-and-hosts-osx.sh')
-rwxr-xr-x | node-admin/scripts/setup-route-and-hosts-osx.sh | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/node-admin/scripts/setup-route-and-hosts-osx.sh b/node-admin/scripts/setup-route-and-hosts-osx.sh new file mode 100755 index 00000000000..dcfcfc0f121 --- /dev/null +++ b/node-admin/scripts/setup-route-and-hosts-osx.sh @@ -0,0 +1,20 @@ +#!/bin/bash +# Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. + +set -e + +echo "This will alter your routing table and /etc/hosts file. Continue ?" +select yn in "Yes" "No"; do + case $yn in + Yes ) break;; + No ) echo "Exiting."; exit;; + esac +done + +# Setup the route +cd "$SCRIPT_DIR" +./route-osx.sh + +# Setup the hosts file +cd "$SCRIPT_DIR" +./etc-hosts.sh |