Merge pull request #318 from xabispacebiker/libretime-debian-stretch
Libretime debian stretch support
This commit is contained in:
commit
800ce3d6d0
14
install
14
install
|
@ -135,7 +135,7 @@ function systemInitDetect() {
|
|||
# Get the path of the command where pid=1 following any symlinks
|
||||
pid_1_path=$(readlink --canonicalize -n /proc/1/exe)
|
||||
# returns '/sbin/init' (Debian Wheezy & Ubuntu Trusty)
|
||||
# returns '(/usr)?/lib/systemd/systemd' (Debian Jessie, Ubuntu Xenial, CentOS 7)
|
||||
# returns '(/usr)?/lib/systemd/systemd' (Debian Stretch, Debian Jessie, Ubuntu Xenial, CentOS 7)
|
||||
verbose "Detected path to PID=1 process: $pid_1_path"
|
||||
# Get package of PID=1 path as it identifies the init system
|
||||
pid_1_package=$(dpkg -S $pid_1_path 2>/dev/null ||
|
||||
|
@ -566,6 +566,7 @@ fi
|
|||
|
||||
# Validate the distribution and release is a supported one; set boolean flags.
|
||||
is_debian_dist=false
|
||||
is_debian_stretch=false
|
||||
is_debian_jessie=false
|
||||
is_debian_wheezy=false
|
||||
is_ubuntu_dist=false
|
||||
|
@ -589,6 +590,11 @@ case "${dist}-${code}" in
|
|||
is_ubuntu_dist=true
|
||||
is_ubuntu_trusty=true
|
||||
;;
|
||||
debian-9|debian-stretch)
|
||||
code="stretch"
|
||||
is_debian_dist=true
|
||||
is_debian_stretch=true
|
||||
;;
|
||||
debian-8|debian-jessie)
|
||||
code="jessie"
|
||||
is_debian_dist=true
|
||||
|
@ -641,6 +647,7 @@ if [ "$ignore_dependencies" = "f" ]; then
|
|||
apt_force_options="--allow-downgrades --allow-remove-essential --allow-change-held-packages"
|
||||
# Get apt-get version by returning the 2nd parameter from the 1st line of output
|
||||
apt_version=$(apt-get --version |awk 'NR == 1 { print $2 }')
|
||||
# returns: 1.4.7 (Debian Stretch)
|
||||
# returns: 0.9.7.9 (Debian Wheezy)
|
||||
# returns: 1.0.1ubuntu2 (Ubuntu Trusty)
|
||||
# returns: 1.0.9.8.4 (Debian Jessie)
|
||||
|
@ -939,7 +946,7 @@ loud "-----------------------------------------------------"
|
|||
# Test common locations for php conf directory
|
||||
php_conf_dirs=(
|
||||
"/etc/php/7.0/apache2/conf.d" # Ubuntu Xenial
|
||||
"/etc/php5/apache2/conf.d" # Debian Jessie, Ubuntu Trusty
|
||||
"/etc/php5/apache2/conf.d" # Debian Stretch, Debian Jessie, Ubuntu Trusty
|
||||
"/etc/php.d" # CentOS 7
|
||||
)
|
||||
for php_conf in ${php_conf_dirs[@]}; do
|
||||
|
@ -960,7 +967,7 @@ else
|
|||
fi
|
||||
|
||||
# Enable Apache modules
|
||||
if $is_ubuntu_xenial; then
|
||||
if $is_ubuntu_xenial || $is_debian_stretch; then
|
||||
loudCmd "a2enmod rewrite php7.0"
|
||||
elif $is_centos_dist; then
|
||||
verbose "TODO: enable Apache modules mod_rewrite and mod_php manually"
|
||||
|
@ -1113,3 +1120,4 @@ echo " To get started with Airtime, visit ${IP} "
|
|||
echo " or, if you've set up your own web configuration, "
|
||||
echo " the Airtime webroot on your webserver "
|
||||
echo "-----------------------------------------------------"
|
||||
|
||||
|
|
|
@ -0,0 +1,66 @@
|
|||
apache2
|
||||
git
|
||||
libapache2-mod-php7.0
|
||||
php7.0
|
||||
php7.0-dev
|
||||
php7.0-bcmath
|
||||
php7.0-mbstring
|
||||
php-pear
|
||||
php7.0-gd
|
||||
php-amqplib
|
||||
|
||||
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
|
||||
libvo-aacenc0
|
||||
|
||||
python-rgain
|
||||
python-gst-1.0
|
||||
gstreamer1.0-plugins-ugly
|
||||
python-pika
|
||||
|
||||
patch
|
||||
|
||||
icecast2
|
||||
|
||||
curl
|
||||
php7.0-curl
|
||||
mpg123
|
||||
|
||||
libcamomile-ocaml-data
|
||||
libpulse0
|
||||
vorbis-tools
|
||||
lsb-release
|
||||
lsof
|
||||
vorbisgain
|
||||
flac
|
||||
vorbis-tools
|
||||
pwgen
|
||||
libfaad2
|
||||
php-apcu
|
||||
|
||||
lame
|
||||
|
||||
coreutils
|
||||
|
||||
liquidsoap
|
||||
|
||||
libopus0
|
||||
|
||||
systemd-sysv
|
Loading…
Reference in New Issue