23 lines
414 B
Bash
Executable File
23 lines
414 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
if [ ! -e /usr/local/lib/libtsm.so ];
|
|
then
|
|
echo "libtsm missing, compiling from source..."
|
|
DIR=$(mktemp -d)
|
|
cd $DIR
|
|
git clone https://github.com/dvdhrm/libtsm.git .
|
|
git checkout d8fff00
|
|
test -f ./configure || NOCONFIGURE=1 ./autogen.sh
|
|
./configure --prefix=/usr/local
|
|
make
|
|
sudo make install
|
|
cd -
|
|
fi
|
|
|
|
rm -f log/*
|
|
bundle install
|
|
bundle exec rake db:setup
|
|
touch tmp/restart.txt
|