-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathgp.sh
executable file
·77 lines (67 loc) · 1.06 KB
/
gp.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
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
#!/usr/bin/env bash
cd /var/local
/usr/bin/expect<<EOF
spawn /bin/bash greenplum-db-4.2.6.1-build-1-RHEL5-x86_64.bin
expect "I HAVE READ AND AGREE TO THE TERMS OF THE ABOVE EMC SOFTWARE LICENSE AGREEMENT"
send "\s"
send "\s"
send "\s"
send "\s"
send "\s"
send "\s"
send "\s"
send "\s"
send "\s"
send "\s"
send "\s"
send "\s"
send "\s"
send "\s"
send "\s"
send "\s"
send "\s"
send "\s"
send "\s"
send "\s"
send "\s"
send "\s"
send "\s"
send "\s"
send "\s"
send "\s"
send "\s"
send "\s"
send "\s"
send "\s"
send "\s"
send "\s"
send "\s"
send "\s"
send "\s"
send "\s"
send "\s"
send "\s"
send "\s"
send "\s"
expect {
"Do you accept the EMC Database license agreement?"
{
send "yes\r"
exp_continue}
}
expect {
"Provide the installation path for Greenplum Database or press"
{ send \r"
exp_continue }
}
expect {
"Install Greenplum Database into"
{send "yes\r"
exp_continue }
}
expect "/usr/local/greenplum-db"
send "yes\r"
expect "Provide the path to previous installation"
send "\r"
expect
EOF