This repository has been archived by the owner on Apr 21, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
install_fedora.exp
executable file
·84 lines (83 loc) · 1.8 KB
/
install_fedora.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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
#!/usr/bin/expect -f
set timeout 15
#set username [lindex $argv 0]
#set password [lindex $argv 1]
#set hostname [lindex $argv 2]
#log_user 0
spawn java -jar /opt/install/fcrepo-installer-3.6.2.jar
expect "*"
expect "*Installation type*==> $"
send "custom\r"
expect "*"
expect "*Fedora home directory*==> $"
send "/opt/fedora\r"
expect "*"
expect "*password*==> $"
send -- "fedoraAdmin\r"
expect "*"
expect "*host*==> $"
send -- "localhost\r"
expect "*"
expect "*context*==> $"
send -- "fedora\r"
expect "*"
expect "*API-A*==> $"
send -- "false\r"
expect "*"
expect "*SSL*==> $"
send -- "false\r"
expect "*"
expect "*engine*==> $"
send -- "existingTomcat\r"
expect "*"
expect "*Tomcat home*==> $"
send -- "/usr/share/tomcat6\r"
expect "*"
expect "*Tomcat HTTP port*==> $"
send -- "8080\r"
expect "*"
expect "*Tomcat shutdown port*==> $"
send -- "8005\r"
expect "*"
expect "*Database*==> $"
send -- "mysql\r"
expect "*"
expect "*JDBC driver*==> $"
send -- "included\r"
expect "*"
expect "*Database username*==> $"
send -- "fedoraDBAdmin\r"
expect "*"
expect "*Database password*==> $"
send -- "fedoraAdmin\r"
expect "*"
expect "*JDBC URL*==> $"
send -- "jdbc:mysql://localhost/fedora3?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true\r"
expect "*"
expect "*DriverClass*==> $"
send -- "com.mysql.jdbc.Driver\r"
expect "*"
expect "*upstream HTTP authentication*==> $"
send -- "false\r"
expect "*"
expect "*FeSL AuthZ*==> $"
send -- "false\r"
expect "*"
expect "*Policy enforcement*==> $"
send -- "false\r"
expect "*"
expect "*Low Level Storage*==> $"
send -- "akubra-fs\r"
expect "*"
expect "*Resource Index*==> $"
send -- "false\r"
expect "*"
expect "*Messaging*==> $"
send -- "false\r"
expect "*"
expect "*local services and demos*==> $"
send -- "true\r"
expect "*"
send_user "Fedora is being installed"
expect eof
#interact