Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
23 lines (16 sloc) 596 Bytes
#!/bin/sh
# install Java 9
sudo yum -y update
sudo yum -y remove java
rpm -ivh /tmp/install/jdk-9_linux-x64_bin.rpm
echo "Successfully installed java"
# setup the logsentinel-agent service
# make sure logsentinel-agent.conf is in place
adduser logsentinelagent
chown logsentinelagent:logsentinelagent /var/logsentinel/logsentinel-agent.jar
ln -s /var/logsentinel/logsentinel-agent.jar /etc/init.d/logsentinel-agent
chmod +x /etc/init.d/logsentinel-agent
mkdir -p /var/log/logsentinel-agent
chmod 777 /var/log/logsentinel-agent
service logsentinel-agent start
chkconfig logsentinel-agent on