-
Notifications
You must be signed in to change notification settings - Fork 0
/
vc4install.exp
62 lines (41 loc) · 1.22 KB
/
vc4install.exp
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
#!/usr/bin/expect -f
set timeout 300
spawn /bin/bash
expect "#"
send -- "service mysql start\r"
expect "#"
send -- "apt install -y virtualcontrol\r"
expect "IPv4 rules?"
send -- "yes\r"
set timeout 60
expect "IPv6 rules?"
send -- "yes\r"
expect "Default Kerberos version 5 realm"
send -- "\r"
expect "LDAP server Uniform Resource Identifier"
send -- "\r"
expect "Distinguished name of the search base"
send -- "\r"
expect "LDAP version to use"
send -- "1\r"
expect "Make local root Database admin"
send -- "no\r"
expect "Does the LDAP database require login"
send -- "no\r"
expect "Please provide the installation directory, or press enter to accept the default"
send -- "\r"
expect "Please provide the password for the MariaDB Root user."
send -- "password\r"
expect "Please confirm the password for root"
send -- "password\r"
expect "Please provide a name for the database or press enter to accept the default"
send -- "\r"
expect "Please provide the name for the database's user account"
send -- "\r"
expect "Please provide a password for the virtualcontrol user or press enter to accept the default"
send -- "\r"
set timeout 300
expect "Thank you for installing Crestron Virtual Control"
expect "#"
send -- "exit\r"
exit