summarylogtreecommitdiffstats
path: root/nexus-oss.install
blob: e59efb1189ac98ad0a798092f7c38ba8f19daa90 (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
post_install()
{
	systemd-sysusers nexus-oss.conf
	echo -n 'Changing the ownership of var/lib/nexus-oss, be patient...'
	chown -R nexus:nexus var/lib/nexus-oss
	chmod -R o-rwx var/lib/nexus-oss
	echo ' done'
	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

Sonatype strongly suggests using the latest Java 8 release version of Java
available from Oracle. Support for Java 9 has not been verified - DO NOT USE IT.

See https://help.sonatype.com/display/NXRM3/System+Requirements#SystemRequirements-Java

EOF
}

post_upgrade()
{
	systemctl daemon-reload

	cat <<EOF

See Release Notes at
	https://help.sonatype.com/display/NXRM3/2018+Release+Notes

EOF
}

pre_remove()
{
	systemctl disable --now nexus-oss
}

post_remove()
{
	systemctl daemon-reload
}