blob: a59f0bef5fb6731aa9a45393327ac22cfce1e3de (
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/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/artifactory/{backup,data,support}'
echo 'to appropriate places, since by default Artifactory will write its data to /opt/artifactory'
echo
}
post_upgrade() {
echo "Removing tomcat work directory"
if [ -d /opt/artifactory/tomcat/work ]
then
rm -rf /opt/artifactory/tomcat/work
fi
if [ -d /opt/artifactory/tomcat/webapps/artifactory ]
then
echo "Removing Artifactory's exploded WAR directory"
rm -rf /opt/artifactory/tomcat/webapps/artifactory
fi
if [ -f /opt/artifactory/run/artifactory.pid ]
then
echo "Removing Artifactory's PID file"
rm -f /opt/artifactory/run/artifactory.pid
fi
}
|