site/oleg/seed.sh

15 lines
390 B
Bash
Raw Normal View History

2015-02-07 01:04:20 +00:00
#!/bin/bash
set -e
set -x
apt-get update
apt-get install -y --no-install-recommends build-essential make golang
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
mkdir /oleg/src -p
wget https://github.com/infoforcefeed/OlegDB/archive/v.0.1.5.tar.gz -O /oleg/src/oleg.tar.gz
cd /oleg/src && tar xf oleg.tar.gz
cd OlegDB-v.0.1.5 && make && make install
mv /seed/oleg/olegdb.conf /oleg/db.conf