-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathinstall.exp
More file actions
93 lines (92 loc) · 2.58 KB
/
install.exp
File metadata and controls
93 lines (92 loc) · 2.58 KB
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
#!/usr/bin/expect
set timeout 180
puts "DOCKER INSTALL: Beginning scripted installation..."
spawn ./shnlp_unix64_6_7_2_0.sh
while {1 == 1} {
expect {
"This will install Skyhigh Cloud Connector on your computer" {
sleep 1
send -- "o\n"
}
"Where should Skyhigh Cloud Connector be installed" {
sleep 1
send -- "/usr/local/shnlp\n"
}
"Create symlinks" {
sleep 1
send -- "y\n"
}
"Select the folder where you would like Skyhigh Cloud Connector to create symlinks" {
sleep 1
send -- "/usr/local/bin\n"
}
"This machine can directly connect to the internet" {
sleep 1
send -- "1\n"
}
"install to that directory anyway" {
sleep 1
send -- "y\n"
}
"Username:" {
sleep 1
send -- "$::env(SKYHIGH_USERNAME)\n"
}
"Password:" {
sleep 1
send -- "$::env(SKYHIGH_PASSWORD)\n"
}
"EUPROD (Frankfurt)" {
sleep 1
send -- "1\n"
}
"The Salt is used as a customer-specific secret" {
sleep 1
send -- "$::env(SKYHIGH_SALT)\n"
}
"Custom Environment URL" {
sleep 1
send -- "y\n"
expect "https://www.myshn.net/shnapi/" {
sleep 1
send -- "$::env(SKYHIGH_ENV)\n"
}
}
"Local IP Address:" {
sleep 1
send -- "\n"
expect "Port:"
sleep 1
send -- "$::env(SKYHIGH_PORT)\n"
}
"Select No to keep the same DNS name" {
sleep 1
if {[info exists env(SKYHIGH_DNS_NAME)]} {
send -- "$::env(SKYHIGH_DNS_NAME)\n"
} else {
send -- "n\n"
}
send -- "n\n"
}
"Choose the configuration to be used by the Skyhigh Cloud Connector installation" {
sleep 1
send -- "\n"
}
"Extracting files ..." {
expect {
eof {
puts "DOCKER INSTALL: Installation successful!"
exit 0
}
}
}
eof {
puts "DOCKER INSTALL: Installer quit unexpectedly. Exiting code 3."
exit 3
}
timeout {
puts "DOCKER INSTALL: Unexpected timeout in input script. Exiting code 1."
exit 1
}
}
}