forked from gcloudrig/gcloudrig
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.sh
executable file
·35 lines (29 loc) · 827 Bytes
/
setup.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/usr/bin/env bash
# exit on error
set -e
[ -n "$GCLOUDRIG_DEBUG" ] && set -x
# full path to script dir
DIR="$( cd "$( dirname -- "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"
# load globals
# shellcheck source=globals.sh
source "$DIR/globals.sh"
init_setup # init_gcloudrig;
echo
while read -n 1 -p "Would you like to automatically install some things? [y/n] " ; do
case $REPLY in
y|Y)
echo
gcloudrig_select_software_options
gcloudrig_enable_software_setup
break
;;
n|N)
echo
break
;;
esac
done
# create/recreate instance group; uses the startup template by default
gcloudrig_delete_instance_group
gcloudrig_create_instance_group
echo "Done! Run './scale-up.sh' to start your instance. If this is it's first launch, installations may take ~20mins to finish."