diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 6843c327f..654138670 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -58,31 +58,3 @@ jobs: composer install --no-progress --dev cd airtime_mvc/tests php ../../vendor/bin/phpunit - test-xenial-php: - runs-on: ubuntu-16.04 - env: - ENVIRONMENT: testing - LIBRETIME_LOG_DIR: /tmp/log/libretime - steps: - - uses: actions/checkout@v2 - - name: Setup PostgreSQL - run: | - sudo systemctl start postgresql.service - pg_isready - sudo -u postgres psql -c 'CREATE DATABASE libretime;' - sudo -u postgres psql -c "CREATE USER libretime WITH PASSWORD 'libretime';" - sudo -u postgres psql -c 'GRANT CONNECT ON DATABASE libretime TO libretime;' - sudo -u postgres psql -c 'ALTER USER libretime CREATEDB;' - - name: Setup PHP with specific version - uses: shivammathur/setup-php@v2 - with: - php-version: "7.0" - - name: Install prerequisites - run: sudo -E ./.github/scripts/install-xenial.sh - - name: Run PHP tests - run: | - echo "::group::Install PHP dependencies" - composer install --no-progress --dev - echo "::endgroup::" - cd airtime_mvc/tests - php ../../vendor/bin/phpunit diff --git a/Vagrantfile b/Vagrantfile index c099fdafe..7356a97bf 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -48,10 +48,6 @@ Vagrant.configure("2") do |config| os.vm.box = "bento/ubuntu-18.04" provision_libretime(os, "debian.sh", installer_args) end - config.vm.define "ubuntu-xenial" do |os| - os.vm.box = "bento/ubuntu-16.04" - provision_libretime(os, "debian.sh", installer_args) - end config.vm.define "debian-buster" do |os| os.vm.box = "bento/debian-10" provision_libretime(os, "debian.sh", installer_args) diff --git a/docs/_docs/vagrant.md b/docs/_docs/vagrant.md index 410f3af0e..72c46bcb4 100644 --- a/docs/_docs/vagrant.md +++ b/docs/_docs/vagrant.md @@ -34,8 +34,8 @@ This is fixed by stopping virtualbox and re-creating the vagrant box: ``` sudo systemctl stop virtualbox -vagrant destroy ubuntu-xenial -vagrant up ubuntu-xenial --provider=libvirt +vagrant destroy ubuntu-bionic +vagrant up ubuntu-bionic --provider=libvirt ``` ### Debian and Ubuntu @@ -46,9 +46,9 @@ sudo usermod -aG libvirt $USER # Reboot -vagrant box add bento/ubuntu-16.04 --provider=virtualbox -vagrant mutate bento/ubuntu-16.04 libvirt -vagrant up ubuntu-xenial --provider=libvirt +vagrant box add bento/ubuntu-18.04 --provider=virtualbox +vagrant mutate bento/ubuntu-18.04 libvirt +vagrant up ubuntu-bionic --provider=libvirt ``` ### Other Distributions @@ -62,9 +62,9 @@ sudo usermod -a -G libvirt $USER # Reboot vagrant plugin install vagrant-mutate -vagrant box fetch bento/ubuntu-16.04 -vagrant mutate bento/ubuntu-16.04 libvirt -vagrant up ubuntu-xenial --provider=libvirt +vagrant box fetch bento/ubuntu-18.04 +vagrant mutate bento/ubuntu-18.04 libvirt +vagrant up ubuntu-bionic --provider=libvirt ``` ## Starting LibreTime Vagrant @@ -76,26 +76,25 @@ change the default provider if you have multiple installed. This can be done by ```bash git clone https://github.com/libretime/libretime.git cd libretime -vagrant up ubuntu-xenial +vagrant up ubuntu-bionic ``` If everything works out, you will find LibreTime on [port 8080](http://localhost:8080) and Icecast on [port 8000](http://localhost:8000). Once you reach the web setup GUI you can click through it using the default values. To -connect to the vagrant machine you can run `vagrant ssh ubuntu-xenial` in the libretime +connect to the vagrant machine you can run `vagrant ssh ubuntu-bionic` in the libretime directory. ## Alternative OS installations -With the above instructions LibreTime is installed on Ubuntu Xenial Xerus. The Vagrant setup +With the above instructions LibreTime is installed on Ubuntu Bionic. The Vagrant setup offers the option to choose a different operation system according to you needs. | OS | Command | Comment | | ------------ | -------------------------- | ----------------------------------------------------------- | | Debian 10 | `vagrant up debian-buster` | Install on Debian Buster. | | Ubuntu 18.04 | `vagrant up ubuntu-bionic` | Install on Ubuntu Bionic Beaver. | -| Ubuntu 16.04 | `vagrant up ubuntu-xenial` | Install on Ubuntu Xenial Xerus. | | CentOS | `vagrant up centos` | CentOS 8 with native systemd support and activated SELinux. | ## Troubleshooting diff --git a/install b/install index a0e5553b4..c0ecc21de 100755 --- a/install +++ b/install @@ -625,7 +625,6 @@ is_debian_dist=false is_debian_buster=false is_ubuntu_dist=false is_ubuntu_bionic=false -is_ubuntu_xenial=false is_centos_dist=false is_centos_7=false is_centos_8=false @@ -641,13 +640,8 @@ case "${dist}-${code}" in is_ubuntu_bionic=true ;; ubuntu-16.04|ubuntu-xenial|ubuntu-xenial_docker_minimal) - code="xenial" - is_ubuntu_dist=true - is_ubuntu_xenial=true - ;; - ubuntu-14.04|ubuntu-trusty) - echo -e "ERROR: Ubuntu Trusty is archived and does not receive any security or other updates since 2019-04-17." >&2 - echo -e "The LibreTime installer dropped support for installing LibreTime on Trusty in 3.0.0-alpha.8." >&2 + echo -e "ERROR: Ubuntu Xenial is archived and does not receive any security or other updates since 2021-04-01." >&2 + echo -e "The LibreTime installer dropped support for installing LibreTime on Xenial in 3.0.0-alpha.10." >&2 exit 1 ;; debian-9|debian-stretch) @@ -1076,8 +1070,6 @@ if $is_debian_buster; then loudCmd "a2enmod rewrite php7.3 proxy proxy_http" elif $is_ubuntu_bionic; then loudCmd "a2enmod rewrite php7.2 proxy proxy_http" -elif $is_ubuntu_xenial; then - loudCmd "a2enmod rewrite php7.0 proxy proxy_http" elif $is_centos_dist; then verbose "TODO: enable Apache modules mod_rewrite, mod_php, mod_proxy and mod_proxy_http manually" else @@ -1227,7 +1219,6 @@ if $is_centos_dist; then else # not on centos ip_device="eth0" - $is_ubuntu_xenial && ip_device="enp0s8" IP=$(ifconfig ${ip_device} 2>/dev/null |awk -F'[ :]+' '/inet addr:/ {print $4}') fi verbose "...Done" diff --git a/installer/lib/requirements-ubuntu-xenial.apt b/installer/lib/requirements-ubuntu-xenial.apt deleted file mode 100644 index 840db9306..000000000 --- a/installer/lib/requirements-ubuntu-xenial.apt +++ /dev/null @@ -1,80 +0,0 @@ -apache2 -build-essential -coreutils -curl -ecasound -flac -gcc -gir1.2-gtk-3.0 -gstreamer1.0-plugins-bad -gstreamer1.0-plugins-good -gstreamer1.0-plugins-ugly -icecast2 -lame -libao-ocaml -libapache2-mod-php7.0 -libcamomile-ocaml-data -libcairo2-dev -libfaad2 -libffi-dev -libglib2.0-dev -libgirepository1.0-dev -libmad-ocaml -libopus0 -libportaudio2 -libpulse0 -libpq-dev -libsamplerate0 -libsoundtouch-ocaml -libssl-dev -libtaglib-ocaml -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 -lsb-release -lsof -mpg123 -patch -php7.0 -php7.0-curl -php7.0-gd -php7.0-pgsql -php-apcu -php-bcmath -php-mbstring -php-pear -pkg-config -postgresql -postgresql-client -pwgen -python3 -python3-dev -python3-gi -python3-gi-cairo -python3-gst-1.0 -python3-pika -python3-pip -python3-virtualenv -python3-cairo -rabbitmq-server -silan -sysvinit-utils -unzip -uwsgi -uwsgi-plugin-python3 -vorbisgain -vorbis-tools -vorbis-tools -xmlstarlet -zip diff --git a/installer/lib/requirements-ubuntu-xenial_docker_minimal.apt b/installer/lib/requirements-ubuntu-xenial_docker_minimal.apt deleted file mode 100644 index 3452d8a2d..000000000 --- a/installer/lib/requirements-ubuntu-xenial_docker_minimal.apt +++ /dev/null @@ -1,69 +0,0 @@ -apache2 -build-essential -coreutils -curl -ecasound -flac -gstreamer1.0-plugins-bad -gstreamer1.0-plugins-good -gstreamer1.0-plugins-ugly -lame -libao-ocaml -libapache2-mod-php7.0 -libcamomile-ocaml-data -libfaad2 -libffi-dev -libmad-ocaml -libopus0 -libportaudio2 -libpulse0 -libpq-dev -libsamplerate0 -libsoundtouch-ocaml -libssl-dev -libtaglib-ocaml -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 -lsb-release -lsof -mpg123 -patch -php7.0 -php7.0-curl -php7.0-gd -php7.0-pgsql -php-apcu -php-bcmath -php-mbstring -php-pear -postgresql-client -pwgen -python3 -python3-dev -python3-gst-1.0 -python3-pika -python3-pip -python3-virtualenv -python3-cairo -silan -sysvinit-utils -unzip -vorbisgain -vorbis-tools -vorbis-tools -xmlstarlet -uwsgi -uwsgi-plugin-python3 -zip