Commit Graph

385 Commits

Author SHA1 Message Date
Kyle Robbertze 8346e89e99 install successfully using py3 2020-04-29 19:05:35 +02:00
Robb Ebright fffedd43c3 Added qualifier to icecast check 2020-03-17 11:22:11 -04:00
Robb Ebright 595ad7f0bd Merge branch 'fix-installer' of https://github.com/paddatrapper/libretime into paddatrapper-fix-installer 2020-03-17 10:18:21 -04:00
Kyle Robbertze 52dd3f8ffa
Merge pull request #954 from codenift/lt_install_fix
Install fix
2020-01-23 08:58:55 +02:00
Codenift 7c524fb0af
Quick fix for install
Work around until #951 is merged. Helps with the issue many are having by installing a previous package of zipp, 1.0.0
2020-01-22 15:02:10 -05:00
Kyle Robbertze a29a35034d fix existing config check 2020-01-22 15:20:27 +02:00
Robb Ebright 4be7699eec made sure that icecast pass is not changed upon upgrade or reprovision 2020-01-09 08:36:52 -05:00
Robb Ebright 1c89675f6e made sure icecast_pass was copied to airtime directory upon reprovision 2020-01-09 08:04:09 -05:00
Kyle Robbertze 5cfa57234b
Merge pull request #933 from Robbt/icecast-password
change default icecast password automatically during install
2020-01-08 13:50:56 +02:00
Robb Ebright 336e7d82b1 fixed installer to not change pass during upgrade and add centos support 2020-01-07 10:40:30 -05:00
Robbt edaa2ead85 fixed new line in php 2020-01-03 20:14:02 -05:00
Robb Ebright 5d3295c86c first stab at icecast password change on install 2020-01-01 21:03:30 -05:00
Robb Ebright 1139f82ef2 fix rasbian debian 10 install 2019-12-28 09:01:22 -05:00
Lucas Bickel f75c533d0b 💥 (ubuntu) drop trusty from installer 2019-07-14 11:30:36 +02:00
Kyle Robbertze c78a8e178e Deprecate Debian Jessie
Closes #684
2019-06-02 13:23:33 +02:00
Kyle Robbertze b5325f45ff Fix systemd detection logic 2019-02-28 21:56:59 +02:00
Kyle Robbertze 916cc35058 Allow init package detection to fail.
As the init system isn't necessarily shipped in a package (dpkg and
rpm fail), then use the PID 1 file path to assume the init system.
2019-02-28 21:56:59 +02:00
Kyle Robbertze a414bc3418 Add support for Buster in the installer 2019-02-28 21:56:59 +02:00
Kyle Robbertze ddf34a1f9b fix grammar in Jessie warning 2019-01-11 11:49:24 +02:00
Kyle Robbertze a3f329834e Add warning for the deprecation of Debian Jessie
Jessie is out of security support and will be dropped in
LibreTime 3.0.0-alpha.8

Fixes #684
2019-01-11 09:03:22 +02:00
vagrant 85f75fcadf made Y default value for install script 2018-12-18 15:34:58 +00:00
Lucas Bickel 1d7823468f drop wheezy support
Removes the Vagrant set up for Debian wheezy and makes the installer abort and complain if started
on wheezy.
2018-11-22 00:39:55 +01:00
Lucas Bickel 5347af43c1 🐛 (installer) Add Trusty EOL warning 2018-10-14 11:52:04 +02:00
Lucas Bickel 6898c4dc8e 📦 (installer) add Ubuntu Bionic Beaver Vagrant box 2018-10-12 21:12:07 +02:00
David 7ad096bd5b add xenial minimal flags 2018-09-16 22:19:10 +10:00
David 6222e56ee4 add defaults for no-postgres and no-rabbitmq options 2018-09-16 22:13:30 +10:00
David 9f15b2d3df begin docker xenial support 2018-09-16 21:55:55 +10:00
Robb 914e2a2384
Merge pull request #475 from WiccyShackleton/master
Fix to the installer to enable successful install on Raspbian 9 (stretch)
2018-05-24 14:36:04 -04:00
WiccyShackleton 46a820b817 Marked where the raspbian stretch fix is located 2018-04-04 02:07:39 +00:00
WiccyShackleton 81e0832a2f Modified install to recognise Raspbian Stretch 9 as Debian Stretch - installer now works on Raspberry Pi 2 and above 2018-04-04 01:55:10 +00:00
Lucas Bickel b718a1b53b Remove obsolete settings from master config template 2018-03-02 13:12:19 +01:00
Lucas Bickel 538bfb8426 Fix install --version 2018-02-05 18:46:08 +01:00
Kyle Robertze c16d7c2a1d remove media-monitor
airtime-media-monitor conflicts with airtime-analyzer, which is what
is now used to monitor the LibreTime application

https://github.com/LibreTime/libretime-debian-packaging/issues/2#issuecomment-359987457
2018-01-24 09:20:51 +02:00
Xabi Spacebiker 167f7d1c98 Update install 2017-10-05 01:04:02 +02:00
Xabi Spacebiker 09dbe3ea06 Update install
Adding support for Debian 9 Stretch
2017-10-05 00:17:46 +02:00
Lucas Bickel 2b64fe0d96 Disable media-monitor on update
The installer originally contained code to stop media-monitor on
updates. This code was removed together with media-monitor. In
the update case we want to make sure that media-monitor is never
running after updating to LibreTime.

The stop command will fail with a warning on systems that never
had media-monitor installed. This warning can be ignored and the
other services stopped with the same command still get stopped
as intended.

Fix #230
2017-08-06 22:34:22 +02:00
Lucas Bickel fa2018a2c5 Simplify configuration file structure
This removes most of the legacy upstream config madness by not using
weird config files spread all over the place.

This isn't the solution to other config reading fragility issues, but
it does move the whole config back to the central airtime.conf file.
2017-07-21 13:15:28 +02:00
Lucas Bickel 9c5b769cf0 Fix update warning
I fixed the manual installer to ensure that the VERSION file ends up
in the right directory on install.

I also took care of the pre-release parts of the naggingness. It shows
no updates as long there is no stable release for the current version.
As soon as one is available it uses the orange update icon to alert the
user that an update would be in order since a stable version has been
released.
2017-07-17 21:15:51 +02:00
Lucas Bickel 5013a76060 Don't start services on install
We need to wait until the setup routine is finished or else the
install will fail when starting celery.
2017-06-27 22:44:13 +02:00
Lucas Bickel 43eb777177 Clean up file creation and remove std_err_override
* Re-order folder creation to make a bit more sense (the log file creation step was unreachable because python scripts always created the checked dir early)
* create dirs from pypo data_files in installer so pypo can run out of the box on a new install
* Fix path to logrotate script (logrotation needs testing though)
* Remove std_err_override module from install. Code-wise only airtime-media-monitor is still based on it and that is slated for removal together with std_err_override.
2017-05-01 19:04:40 +02:00
Bill Burton 3179651dec Installer auto-detects distro, portable system init
The theme of this commit is to make the install process more
resiliant to differences in distros by testing for specific
features or versions of executables rather than making as many
assumptions just on the distro and release.

* Distro and Release detection (install, Vagrantfile)
  - Added detection logic for distro and release based on
    /etc/os-release which is available on all potential supported
    distros. The --distribution and --release options can be used
    to override detection.
  - Added distro and release checks to ensure values specified are
    for a supported release.
  - Changed some distro checks to use booleans, e.g.
    if $is_centos_7; then ...
  - Added a simple check so if --distribution is specified, it will
    ensure it's at least sane, e.g. centos on debian or debian on
    centos will be caught.
  - In Vagrantfile, removed --distribution and --release options for
    all distro and release combinations.

* Portable Init System Detection and Management (install, centos.sh)
  - Added detection logic for init system type - systemd, Upstart or
    System V in the function systemInitDetect().
  - Added portable init system install in the function
    systemInitInstall() which depends on systemInitDetect(). After
    installing files, enables and starts service.
  - Added portable init system commands in the function
    systemInitCommand() for start, stop, reload, restart and status.
  - Python services don't support systemd but unconditionally install
    scripts for both Upstart and System V. Disabled by passing
    --no-init-script to setup.py for each service.
  - When upgrading, remove all old system init files in /etc/init,
    /etc/init.d, /etc/default and /etc/systemd/system.
  - In centos.sh, removed install of airtime systemd service files
    as it's now handled by install.
  - Created an Upstart .conf for airtime-celery
  - In systemd file for airtime-celery, changed absolute path to
    /usr/local/bin/celery and for centos, the install symlinks
    celery to /usr/local/bin.

* External Dependencies Install (install)
  - For external dependencies, only attempt to install for Debian-
    based distros with apt-get. For centos, a warning is displayed.
  - For systems with apt-get, detect version and if 1.1 or greater,
    use new force options, otherwise use --force-yes option.

* Configuring Apache (install)
  - For Apache, check for centos and use httpd for binary and
    service, otherwise use apache2ctl and apache2.
  - Detect Apache version 2 or better in a more reliable manner.
  - Detect Apache root folder and conf file name by running
    apache2ctl -V or httpd -V as appropriate.
  - Various checks for centos as it doesn't support the Debian
    Apache utilities a2ensite/a2dissite, a2enmod/a2dismod, etc.

* Installing Airtime Services (install)
  - Detect Python version. If less than 2.7.9, install OpenSSL
    support.
  - Prevent installing init files by passing --no-init-script to
    setup.py for each service.
  - Use systemInitInstall to install, enable and start each service
    after setup.py has run.
  - Removed filtering for WEB_USER for files in
    /etc/init/airtime*.template as that is handled in the
    systemInitInstall() function.

* Configuring PHP in Apache (install)
  - Detect PHP conf folder by checking a list of locations rather
    than making assumptions based on the distro and release.

* Configuring PostgreSQL (install)
  - Detects if the airtime user has already been created. If not,
    then creates the user.

* Installing Locales (install)
  - Minor changes to check for centos and prevent from running.
2017-04-28 11:00:50 -04:00
Lapotor 28fb7fca72 Changed on Xenial Upstart to Systemd 2017-04-19 20:35:47 +02:00
Lapotor c8a474e1fe Delete debug things, changed if for initctl 2017-04-11 14:36:34 +02:00
Lapotor 9c06be3b99 Deletet Auto install of Upstart 2017-04-11 06:03:45 +02:00
Lapotor 1132f79115 Delete develop things 2017-04-11 05:55:42 +02:00
Lapotor 6a088c5603 auto reboot added
after installing upstart it will automaticly restart
2017-04-11 05:47:43 +02:00
Lapotor 585ea7f82e Update for install on Ubuntu 16.04
Changed will have additional changes is backwards comaptible only if code is xenial the changes will happen
2017-04-11 03:11:23 +02:00
Lapotor 230aea468e changed --force-yes to --allow if ubuntu xenial 2017-04-11 00:37:23 +02:00
Lucas Bickel 9a6d5b0175 Restore SELinux tags after install 2017-03-13 14:10:29 +01:00
Lucas Bickel c29285ae48 Vagrant Debian support (and experimental CentOS)
This changes the Vagrant setup to support multiple installations as multiple
boxes. In addition to Ubuntu Vagrant can now be used to install on Debian
as well as on CentOS.

I took the chance to clean up the .deb install a bit and backported analyzer
and celery to SysV proper so it runs there. Some of the distro specfics were
moved to the install script from the python setup scripts to acheive this.

For the CentOS support I added a rather involved OS prepare script. In the
long term this will be added to the preparing-the-server docs we already have.

I had to switch the default port to http-alt (8080). On CentOS 9080 is registered
for ocsp and getting it to work for apache without hacking SELinux is hard. I
think 8080 is the RFC way to go anyhow. If anyone want to override this it
should be rather easy using the --web-port arg and by hacking Vagrantfile.

The PyOpenSSL code has been refactored for all the distros that the Vagrantfile
now supports.

As far as my checks go, I tried this code with all the distros, uploaded a track
and downloaded a unicode and a ssl podcast and was able to listen to them
in each case.

In the experimental CentOS case, the UI is not up to spec since services
need to get scheduled through systemctl and the status overview (ie. on the /?config page)
do not work properly. They need to be as follows:

```
sudo systemctl start airtime-playout
sudo systemctl start airtime-liquidsoap
sudo systemctl start airtime_analyzer.service
sudo systemctl start airtime-celery.service
```
2017-03-12 13:42:22 +01:00