summarylogtreecommitdiffstats
path: root/artifactory-cpp-ce.install
diff options
context:
space:
mode:
Diffstat (limited to 'artifactory-cpp-ce.install')
-rw-r--r--artifactory-cpp-ce.install39
1 files changed, 39 insertions, 0 deletions
diff --git a/artifactory-cpp-ce.install b/artifactory-cpp-ce.install
new file mode 100644
index 00000000000..a59f0bef5fb
--- /dev/null
+++ b/artifactory-cpp-ce.install
@@ -0,0 +1,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
+}