-
Notifications
You must be signed in to change notification settings - Fork 0
/
jfrog.sh
21 lines (21 loc) · 816 Bytes
/
jfrog.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh
# Unattended-Upgrade::Automatic-Reboot "false"
apt-get remove needrestart -y
#Update and Upgrade Ubuntu OS
apt update && apt -y upgrade
#Download Artifactory
echo "deb https://releases.jfrog.io/artifactory/artifactory-debs xenial main" | sudo tee -a /etc/apt/sources.list.d/artifactory.list
# Import repository GPG key
curl -fsSL https://releases.jfrog.io/artifactory/api/gpg/key/public|sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/artifactory.gpg
#Update again
sudo apt update
#Install Artifactory
sudo apt install jfrog-artifactory-oss -y
#Start Artifactory
sudo systemctl start artifactory.service
# Display Artifactory Status
sudo systemctl status artifactory.service
# Check logs by tailing
# sudo tail -f /var/opt/jfrog/artifactory/log/artifactory-service.log
# Check UI by curl
curl localhost:8081