You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
asciinema.org/script/setup

25 lines
443 B
Bash

#!/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
sudo ldconfig
cd -
fi
rm -f log/*
bundle install
bundle exec rake db:setup
mkdir -p tmp
touch tmp/restart.txt