2015-09-10 12:19:21 +02:00
|
|
|
#!/usr/bin/env bash
|
2015-05-22 05:43:44 +02:00
|
|
|
|
2015-09-10 12:19:21 +02:00
|
|
|
echo "Running apt-get update..."
|
|
|
|
sudo apt-get -qq update
|
2015-05-22 05:43:44 +02:00
|
|
|
|
2015-09-10 12:19:21 +02:00
|
|
|
echo "Installing tagging tools..."
|
|
|
|
sudo apt-get -qq install -y AtomicParsley flac vorbis-tools imagemagick
|
|
|
|
|
|
|
|
echo "Installing ffmpeg dependencies.."
|
|
|
|
sudo apt-get -qq install -y pkg-config yasm libfaac-dev libmp3lame-dev libvorbis-dev
|
2015-05-22 05:43:44 +02:00
|
|
|
|
|
|
|
|
|
|
|
if type ffmpeg &>/dev/null; then
|
|
|
|
echo "ffmpeg is installed!"
|
|
|
|
else
|
|
|
|
echo "ffmpeg is not installed; compiling..."
|
|
|
|
cd /tmp
|
|
|
|
wget "https://ffmpeg.org/releases/ffmpeg-2.6.3.tar.bz2"
|
|
|
|
tar -xjf "ffmpeg-2.6.3.tar.bz2"
|
|
|
|
cd "ffmpeg-2.6.3"
|
|
|
|
./configure --enable-gpl --enable-encoder=flac --enable-encoder=alac --enable-libmp3lame --enable-libvorbis --enable-libfaac --enable-nonfree
|
|
|
|
make -j4
|
|
|
|
sudo make install
|
|
|
|
fi
|
2015-04-30 09:23:14 +02:00
|
|
|
|
2015-04-12 03:22:15 +02:00
|
|
|
mkdir /vagrant/logs
|
|
|
|
/vagrant/vagrant/copy-and-restart-configs.sh
|
|
|
|
|
|
|
|
cd /vagrant
|
|
|
|
|
|
|
|
/usr/local/bin/composer self-update
|
|
|
|
composer install
|
|
|
|
|
|
|
|
cp -r /vagrant/vagrant/config/* "/vagrant/app/config/local"
|
|
|
|
|
|
|
|
php artisan migrate
|
2015-05-22 05:43:44 +02:00
|
|
|
php artisan db:seed
|