#!/bin/sh

source="/etc/apt/sources.list.d/tvip-middleware.list"
if [ ! -f "$source" ]; then

   touch $source
   echo "deb http://deb.packages.tvip.ru/ trusty main" >> $source
   wget --quiet -O - http://deb.packages.tvip.ru/deploy/key.asc | apt-key add -

fi
apt-get update
apt-get install -y tvip-middleware
