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..."
|
2015-10-24 02:52:15 +02:00
|
|
|
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.."
|
2015-09-10 13:30:59 +02:00
|
|
|
sudo apt-get -qq install -y pkg-config yasm libfaac-dev libmp3lame-dev libvorbis-dev libtheora-dev
|
2015-05-22 05:43:44 +02:00
|
|
|
|
|
|
|
|
|
|
|
if type ffmpeg &>/dev/null; then
|
2015-10-25 03:35:37 +01:00
|
|
|
echo "ffmpeg is installed!"
|
2015-05-22 05:43:44 +02:00
|
|
|
else
|
2015-10-25 03:35:37 +01:00
|
|
|
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-libtheora --enable-libfaac --enable-nonfree
|
|
|
|
make -j4
|
|
|
|
sudo make install
|
2015-05-22 05:43:44 +02:00
|
|
|
fi
|
2015-04-30 09:23:14 +02:00
|
|
|
|
2015-09-13 04:19:45 +02:00
|
|
|
mkdir -p /vagrant/storage/logs/system
|
2015-04-12 03:22:15 +02:00
|
|
|
/vagrant/vagrant/copy-and-restart-configs.sh
|
|
|
|
|
|
|
|
cd /vagrant
|
|
|
|
|
2015-11-24 21:35:01 +01:00
|
|
|
hhvm /usr/local/bin/composer self-update
|
|
|
|
hhvm /usr/local/bin/composer install
|
2015-04-12 03:22:15 +02:00
|
|
|
|
2015-11-24 04:07:24 +01:00
|
|
|
cp -n "/vagrant/resources/environments/.env.local" "/vagrant/.env"
|
2015-04-12 03:22:15 +02:00
|
|
|
|
|
|
|
php artisan migrate
|
2015-05-22 05:43:44 +02:00
|
|
|
php artisan db:seed
|
2015-09-24 19:43:12 +02:00
|
|
|
|
2015-12-06 03:41:12 +01:00
|
|
|
echo ""
|
|
|
|
echo "+-----------------------------------------------+"
|
|
|
|
echo "| Now - if you haven't already, SSH into the VM |"
|
|
|
|
echo "| and run \`php artisan poni:setup\`! |"
|
|
|
|
echo "| See the README for more details. |"
|
|
|
|
echo "+-----------------------------------------------+"
|