Merge pull request #157 from Lapotor/Ubuntu-16.04-Update
Ubuntu 16.04 installer update
This commit is contained in:
commit
122166216a
34
install
34
install
|
@ -328,7 +328,11 @@ if [ "$ignore_dependencies" = "f" ]; then
|
||||||
verbose "\n * Reading requirements-${dist,,}-${code,,}.apt..."
|
verbose "\n * Reading requirements-${dist,,}-${code,,}.apt..."
|
||||||
loudCmd "apt-get update"
|
loudCmd "apt-get update"
|
||||||
if [ -f ${SCRIPT_DIR}/installer/lib/requirements-${dist,,}-${code,,}.apt ]; then
|
if [ -f ${SCRIPT_DIR}/installer/lib/requirements-${dist,,}-${code,,}.apt ]; then
|
||||||
loudCmd "DEBIAN_FRONTEND=noninteractive apt-get -y -m --force-yes install $(grep -vE '^\s*#' ${SCRIPT_DIR}/installer/lib/requirements-${dist,,}-${code,,}.apt | tr '\n' ' ')"
|
if [ ${dist,,} == "ubuntu" ] && [ ${code,,} == "xenial" ]; then
|
||||||
|
loudCmd "DEBIAN_FRONTEND=noninteractive apt-get -y -m --allow-downgrades --allow-remove-essential --allow-change-held-packages install $(grep -vE '^\s*#' ${SCRIPT_DIR}/installer/lib/requirements-${dist,,}-${code,,}.apt | tr '\n' ' ')"
|
||||||
|
else
|
||||||
|
loudCmd "DEBIAN_FRONTEND=noninteractive apt-get -y -m --force-yes install $(grep -vE '^\s*#' ${SCRIPT_DIR}/installer/lib/requirements-${dist,,}-${code,,}.apt | tr '\n' ' ')"
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
loudCmd "DEBIAN_FRONTEND=noninteractive apt-get -y -m --force-yes install $(grep -vE '^\s*#' ${SCRIPT_DIR}/installer/lib/requirements-ubuntu-trusty.apt | tr '\n' ' ')"
|
loudCmd "DEBIAN_FRONTEND=noninteractive apt-get -y -m --force-yes install $(grep -vE '^\s*#' ${SCRIPT_DIR}/installer/lib/requirements-ubuntu-trusty.apt | tr '\n' ' ')"
|
||||||
fi
|
fi
|
||||||
|
@ -359,7 +363,6 @@ fi
|
||||||
|
|
||||||
# Run composer (install PHP dependencies) and create a VERSION file
|
# Run composer (install PHP dependencies) and create a VERSION file
|
||||||
loudCmd "./build.sh"
|
loudCmd "./build.sh"
|
||||||
|
|
||||||
if [ -f /etc/airtime/airtime.conf ]; then
|
if [ -f /etc/airtime/airtime.conf ]; then
|
||||||
OLD_CONF=$(grep "[media-monitor]" /etc/airtime/airtime.conf)
|
OLD_CONF=$(grep "[media-monitor]" /etc/airtime/airtime.conf)
|
||||||
|
|
||||||
|
@ -369,7 +372,7 @@ if [ -f /etc/airtime/airtime.conf ]; then
|
||||||
set +e
|
set +e
|
||||||
verbose "Stopping airtime services..."
|
verbose "Stopping airtime services..."
|
||||||
loudCmd "service airtime-playout stop"
|
loudCmd "service airtime-playout stop"
|
||||||
loudCmd "service airtime-media-monitor stop"
|
loudCmd "service airtime-celery stop"
|
||||||
loudCmd "service airtime_analyzer stop"
|
loudCmd "service airtime_analyzer stop"
|
||||||
loudCmd "service airtime-liquidsoap stop"
|
loudCmd "service airtime-liquidsoap stop"
|
||||||
verbose "...Done"
|
verbose "...Done"
|
||||||
|
@ -565,15 +568,19 @@ fi
|
||||||
# Add celery to the www-data group
|
# Add celery to the www-data group
|
||||||
loudCmd "usermod -G ${web_user} -a celery"
|
loudCmd "usermod -G ${web_user} -a celery"
|
||||||
|
|
||||||
if [ "$dist" = "ubuntu" ]; then
|
if [ "$dist" = "ubuntu" ] && [ "$code" != "xenial" ]; then
|
||||||
loudCmd "initctl reload-configuration"
|
loudCmd "initctl reload-configuration"
|
||||||
|
elif [ "$dist" = "ubuntu" ] && [ "$code" = "xenial" ]; then
|
||||||
|
loudCmd "systemctl daemon-reload"
|
||||||
fi
|
fi
|
||||||
verbose "...Done"
|
verbose "...Done"
|
||||||
|
|
||||||
verbose "\n * Installing airtime_analyzer..."
|
verbose "\n * Installing airtime_analyzer..."
|
||||||
loudCmd "python ${AIRTIMEROOT}/python_apps/airtime_analyzer/setup.py install --install-scripts=/usr/bin"
|
loudCmd "python ${AIRTIMEROOT}/python_apps/airtime_analyzer/setup.py install --install-scripts=/usr/bin"
|
||||||
if [ "$dist" = "ubuntu" ]; then
|
if [ "$dist" = "ubuntu" ] && [ "$code" != "xenial" ]; then
|
||||||
loudCmd "initctl reload-configuration"
|
loudCmd "initctl reload-configuration"
|
||||||
|
elif [ "$dist" = "ubuntu" ] && [ "$code" = "xenial" ]; then
|
||||||
|
loudCmd "systemctl daemon-reload"
|
||||||
fi
|
fi
|
||||||
verbose "...Done"
|
verbose "...Done"
|
||||||
|
|
||||||
|
@ -584,8 +591,10 @@ for i in /etc/init/airtime*.template; do
|
||||||
done
|
done
|
||||||
|
|
||||||
set +e
|
set +e
|
||||||
if [ "$dist" = "ubuntu" ]; then
|
if [ "$dist" = "ubuntu" ] && [ "$code" != "xenial" ] ; then
|
||||||
loudCmd "initctl reload-configuration"
|
loudCmd "initctl reload-configuration"
|
||||||
|
elif [ "$dist" = "ubuntu" ] && [ "$code" = "xenial" ]; then
|
||||||
|
loudCmd "systemctl daemon-reload"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# airtime-celery only has an init.d startup script
|
# airtime-celery only has an init.d startup script
|
||||||
|
@ -633,7 +642,12 @@ chmod -R a+x /var/tmp/airtime
|
||||||
chown -R ${web_user}:${web_user} /var/tmp/airtime/
|
chown -R ${web_user}:${web_user} /var/tmp/airtime/
|
||||||
|
|
||||||
# PHP Config File for Apache
|
# PHP Config File for Apache
|
||||||
libretime_phpini="/etc/php5/apache2/conf.d/airtime.ini"
|
if [ ${dist,,} == "ubuntu" ] && [ ${code,,} == "xenial" ]; then
|
||||||
|
libretime_phpini="/etc/php/7.0/apache2/conf.d/airtime.ini"
|
||||||
|
else
|
||||||
|
libretime_phpini="/etc/php5/apache2/conf.d/airtime.ini"
|
||||||
|
fi
|
||||||
|
|
||||||
if [ "$dist" = "centos" ]; then
|
if [ "$dist" = "centos" ]; then
|
||||||
libretime_phpini="/etc/php.d/airtime.ini"
|
libretime_phpini="/etc/php.d/airtime.ini"
|
||||||
fi
|
fi
|
||||||
|
@ -645,10 +659,12 @@ else
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Enable Apache modules
|
# Enable Apache modules
|
||||||
if [ "$dist" != "centos" ]; then
|
if [ "$dist" != "centos" ] && [ "$code" != "xenial" ]; then
|
||||||
loudCmd "a2enmod rewrite php5"
|
loudCmd "a2enmod rewrite php5"
|
||||||
|
elif [ "$dist" = "ubuntu" ] && [ "$code" = "xenial" ]; then
|
||||||
|
loudCmd "a2enmod rewrite"
|
||||||
|
loudCmd "a2enmod php7.0"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
loud "\n-----------------------------------------------------"
|
loud "\n-----------------------------------------------------"
|
||||||
loud " * Configuring PostgreSQL * "
|
loud " * Configuring PostgreSQL * "
|
||||||
loud "-----------------------------------------------------"
|
loud "-----------------------------------------------------"
|
||||||
|
|
|
@ -0,0 +1,81 @@
|
||||||
|
apache2
|
||||||
|
libapache2-mod-php7.0
|
||||||
|
php7.0
|
||||||
|
php-pear
|
||||||
|
php7.0-gd
|
||||||
|
php-bcmath
|
||||||
|
php-mbstring
|
||||||
|
|
||||||
|
lsb-release
|
||||||
|
|
||||||
|
rabbitmq-server
|
||||||
|
|
||||||
|
postgresql
|
||||||
|
postgresql-client
|
||||||
|
php7.0-pgsql
|
||||||
|
|
||||||
|
python
|
||||||
|
python-virtualenv
|
||||||
|
python-pip
|
||||||
|
|
||||||
|
libsoundtouch-ocaml
|
||||||
|
libtaglib-ocaml
|
||||||
|
libao-ocaml
|
||||||
|
libmad-ocaml
|
||||||
|
ecasound
|
||||||
|
libportaudio2
|
||||||
|
libsamplerate0
|
||||||
|
|
||||||
|
python-rgain
|
||||||
|
python-gst-1.0
|
||||||
|
gstreamer1.0-plugins-ugly
|
||||||
|
|
||||||
|
patch
|
||||||
|
|
||||||
|
php7.0-curl
|
||||||
|
mpg123
|
||||||
|
curl
|
||||||
|
|
||||||
|
icecast2
|
||||||
|
|
||||||
|
libcamomile-ocaml-data
|
||||||
|
libpulse0
|
||||||
|
vorbis-tools
|
||||||
|
lsof
|
||||||
|
# mp3gain need to be installed over an external ppa or the use of easymp3gain
|
||||||
|
easymp3gain-gtk
|
||||||
|
vorbisgain
|
||||||
|
flac
|
||||||
|
vorbis-tools
|
||||||
|
pwgen
|
||||||
|
libfaad2
|
||||||
|
php-apcu
|
||||||
|
|
||||||
|
lame
|
||||||
|
|
||||||
|
coreutils
|
||||||
|
|
||||||
|
liquidsoap
|
||||||
|
liquidsoap-plugin-alsa
|
||||||
|
liquidsoap-plugin-ao
|
||||||
|
liquidsoap-plugin-faad
|
||||||
|
liquidsoap-plugin-flac
|
||||||
|
liquidsoap-plugin-icecast
|
||||||
|
liquidsoap-plugin-lame
|
||||||
|
liquidsoap-plugin-mad
|
||||||
|
liquidsoap-plugin-ogg
|
||||||
|
liquidsoap-plugin-portaudio
|
||||||
|
liquidsoap-plugin-pulseaudio
|
||||||
|
liquidsoap-plugin-taglib
|
||||||
|
liquidsoap-plugin-voaacenc
|
||||||
|
liquidsoap-plugin-vorbis
|
||||||
|
|
||||||
|
silan
|
||||||
|
libopus0
|
||||||
|
|
||||||
|
sysvinit-utils
|
||||||
|
|
||||||
|
build-essential
|
||||||
|
libssl-dev
|
||||||
|
libffi-dev
|
||||||
|
python-dev
|
|
@ -53,3 +53,6 @@ setup(name='airtime_analyzer',
|
||||||
if data_files:
|
if data_files:
|
||||||
print "Remember to reload the initctl configuration"
|
print "Remember to reload the initctl configuration"
|
||||||
print "Run \"sudo initctl reload-configuration; sudo service airtime_analyzer restart\" now."
|
print "Run \"sudo initctl reload-configuration; sudo service airtime_analyzer restart\" now."
|
||||||
|
print "Or on Ubuntu Xenial (16.04)"
|
||||||
|
print "Remember to reload the systemd configuration"
|
||||||
|
print "Run \"sudo systemctl daemon-reload; sudo service airtime_analyzer restart\" now."
|
||||||
|
|
Loading…
Reference in New Issue