blob: 8e97681bf6a5b4ded5bfa3d3455ae968446ff514 (
plain)
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
|
print_core_message() {
cat <<EOT
3 Options:
Use the nutch cli and run against it
or to use the nutch restful API
Start the nutch-rest service
$ sudo systemctl restart nutch-rest
This basically runs
nutch nutchserver
but generates java home first
There is also a Web Based Config tool
$ sudo systemctl restart nutch-webapp
This basically runs
nutch webapp
but generates java home first
Port Defaults:
8081 for rest api
8080 for web based config tool
EOT
}
install_nutch_user() {
if ! getent group nutch >/dev/null; then
groupadd -g 115 nutch
fi
if ! getent passwd nutch >/dev/null; then
useradd -c 'Apache Nutch user' -u 115 -g nutch -d '/opt/nutch' -s /bin/bash nutch
passwd -l nutch >/dev/null
fi
}
post_install() {
print_core_message
install_nutch_user
}
post_upgrade() {
post_install $1
}
|