From 09dbe3ea06af5c65d9a11ed117b0eb059750eae5 Mon Sep 17 00:00:00 2001 From: Xabi Spacebiker Date: Thu, 5 Oct 2017 00:17:46 +0200 Subject: [PATCH 1/3] Update install Adding support for Debian 9 Stretch --- install | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/install b/install index bc1183636..8a3311ca1 100755 --- a/install +++ b/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 From 167f7d1c989bc7500dd26143318862641e28da0f Mon Sep 17 00:00:00 2001 From: Xabi Spacebiker Date: Thu, 5 Oct 2017 01:04:02 +0200 Subject: [PATCH 2/3] Update install --- install | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/install b/install index 8a3311ca1..5fa474d6f 100755 --- a/install +++ b/install @@ -967,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" @@ -1120,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 "-----------------------------------------------------" + From 0be55ca986da3444cec9cdf4c488457479f9eb5a Mon Sep 17 00:00:00 2001 From: Xabi Spacebiker Date: Thu, 5 Oct 2017 01:06:46 +0200 Subject: [PATCH 3/3] Create requirements-debian-stretch.apt Adding support for Debian 9 Stretch --- installer/lib/requirements-debian-stretch.apt | 66 +++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 installer/lib/requirements-debian-stretch.apt diff --git a/installer/lib/requirements-debian-stretch.apt b/installer/lib/requirements-debian-stretch.apt new file mode 100644 index 000000000..ac9113661 --- /dev/null +++ b/installer/lib/requirements-debian-stretch.apt @@ -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