forked from wballard/starphleet
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathwebinstall
49 lines (37 loc) · 1.42 KB
/
webinstall
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#!/usr/bin/env bash
# TODO: All the paths need to change on final
## TO USE THIS SCRIPT PASTE THE FOLLOWING INTO THE TERMINAL:
# bash -c "$(curl -s https://raw.githubusercontent.com/wballard/starphleet/master/webinstall)"
##############################################################################
## Author: Benjamin Hudgens
## Date: March 18, 2015
##
## Description: Fully Deploy starphleet from the command line
##
##############################################################################
## Locations to this repo
STARPHLEET_REPO=${STARPHLEET_REPO:-"https://github.com/wballard/starphleet.git"}
STARPHLEET_BRANCH=${STARPHLEET_BRANCH:-master}
##############################################################################
## Main Foo
##############################################################################
[ -n "${HEADQUARTERS_URL}" ] || read -p "Please paste the SSH git URL to your headquarters: " HEADQUARTERS_URL
# We're gonna need git
apt-get install -y git
# Now grab this repo
git clone -b "${STARPHLEET_BRANCH}" "${STARPHLEET_REPO}"
# Head into scripts
cd starphleet/scripts
# Move launcher into place
cp ./starphleet-launcher /usr/bin
# Let the magic begin
./starphleet-install
# Set the headquarters
starphleet-headquarters "${HEADQUARTERS_URL}"
source `which tools`
cat << EOF
NOTICE:
Installation is not finished.
You need to copy your GitHub ssh private key to:
${PRIVATE_KEYS}
EOF