File: create.sh

package info (click to toggle)
python-tosca-parser 2.12.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,908 kB
  • sloc: python: 11,099; sh: 144; makefile: 26
file content (20 lines) | stat: -rwxr-xr-x 603 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash
# This script installs java, logstash and the contrib package for logstash
# install java as prereq

apt-get update
apt-get install -y openjdk-7-jre-headless
mkdir /etc/logstash

# install by apt-get from repo
wget -O - http://packages.elasticsearch.org/GPG-KEY-elasticsearch | apt-key add -
echo "deb http://packages.elasticsearch.org/logstash/1.4/debian stable main" | tee -a /etc/apt/sources.list

apt-get update
apt-get install -y logstash

# install contrib to get the relp plugin
/opt/logstash/bin/plugin install contrib

# set up to run as service
update-rc.d logstash defaults 95 10