blob: b5a04fb2bd3c99f910fd03a91b9163331a86e281 (
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
45
46
47
48
49
|
show_release_notes()
{
dash_version=$(pacman -Q nexus-oss|sed -E 's/.+\s//; s/-.+//; s/\./-/g'|cut -d- -f1-3)
cat <<EOF
Starting with version 3.69.0-02, this package requires Java 11.
Check Release Notes at
https://help.sonatype.com/en/sonatype-nexus-repository-${dash_version}-release-notes.html
EOF
}
post_install()
{
systemd-sysusers nexus-oss.conf
systemd-tmpfiles --create nexus-oss.conf
cat <<EOF
The default URL for this installation is
http://127.0.0.1:8081/
To change these settings edit the file
/var/lib/nexus-oss/etc/nexus.properties
EOF
show_release_notes
}
post_upgrade()
{
systemctl daemon-reload
show_release_notes
}
pre_remove()
{
systemctl disable --now nexus-oss
}
post_remove()
{
systemctl daemon-reload
}
|