blob: b5a6231c5794622945a9baf07eb576d938526181 (
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
|
post_install() {
systemd-sysusers artifactory.conf
chown -R artifactory /opt/jfrog/artifactory
echo
echo 'For the Artifactory user guide and installation instructions please visit:'
echo
echo ' http://wiki.jfrog.org/confluence/display/RTF'
echo
echo 'The default administrator user is:'
echo ' username: admin'
echo ' password: password'
echo
echo 'The default port is 8081'
echo
echo 'Please make sure to create softlinks from /opt/jfrog/artifactory/{backup,data,support}'
echo 'to appropriate places, since by default Artifactory will write its data to /opt/jfrog/artifactory'
echo
}
post_upgrade() {
echo "Removing tomcat work directory"
if [ -d /opt/artifactory/tomcat/work ]
then
rm -rf /opt/jfrog/artifactory/app/tomcat/work
fi
if [ -d /opt/jfrog/artifactory/app/tomcat/webapps/artifactory ]
then
echo "Removing Artifactory's exploded WAR directory"
rm -rf /opt/jfrog/artifactory/app/tomcat/webapps/artifactory
fi
if [ -f /opt/jfrog/artifactory/app/run/artifactory.pid ]
then
echo "Removing Artifactory's PID file"
rm -f /opt/jfrog/artifactory/run/artifactory.pid
fi
}
|