Commit Graph

520 Commits

Author SHA1 Message Date
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
Robb Ebright 8fb41cabc0 adding --upgrade to pip install for pyopenssl 2017-03-11 19:15:33 +00:00
Robb Ebright 880496c20f Merge branch 'install-fix-python-ssl-workaround' of https://github.com/Robbt/libretime into Robbt-install-fix-python-ssl-workaround 2017-03-11 09:56:46 -05:00
Robb Ebright 2ae2377ee2 Modified install script to install PyOpenSSL for Ubuntu 14.04 for airtime-celery SSL fix 2017-03-10 17:13:24 -05:00
Lucas Bickel f80afc83c1 Fix default port 80 Listen case 2017-03-10 12:17:16 +01:00
Lucas Bickel 2350650e26 Enable icecast autoinstall
And fix docs :)
2017-03-07 15:36:18 +01:00
Lucas Bickel bd2f96acf2 Switch LibreTime port to 9080 in vagrant
Also expose icecast and make the airtime port generally configurable from the installer.

To aid in debugging and support the -v (verbose) argument was added to the call.
2017-03-07 13:26:52 +01:00
Lucas Bickel 8ed1dce4b1 Install airtime in vagrant env
Uses the old installer to get LibreTime installed quick and dirty on vagrant.

It uses the `install -fIap` command that does a local install and points the apache config
directly to the local working copy mounted in /vagrant.

While we don't have fancy autoloading for libretime like the docs do, this way
it's already easy to work against a local branch.

I'm not sure if the `-I` arg to the installer also covers the python parts of libretime.
2017-03-06 12:05:22 +01:00
Robb Ebright 86b1fcbf7c Added sample cloud_storage.conf to build dir and install script, changed production dir to symlink, added libretime ASCII art logo 2017-03-04 19:44:01 -05:00
Robb 9bac8354b6 Merge pull request #21 from radiorabe/feature/analyzer-on-travis
mostly run analyzer tests on travis
2017-03-04 19:17:23 -05:00
Robb Ebright a1c4b888c3 Added production directory during setup and used --upgrade parameter for pip install setuptools 2017-03-04 15:22:53 -05:00
Lucas Bickel 9b3d0c90da mostly run analyzer tests on travis
* [x] regonfigured the build matrix with more php jobs and a separate python job (we can add more python jobs later)
* [x] run tests on travis' trusty beta container (it's closer to what we need anyway)
* [x] install packages needed for analyzer tests in build env
* [x] added docs on how to run nosetests locally
* [x] don't run initctl in analyzer setup so setup can also be used on travis (and add it to the install script directly)
* [x] ignore replaygain checks on travis (it has proven quite impossible to get the needed python-gi module to work in the provided virtualenv)

I tried a lot of solutions to get the replaygain checks to run. I needed to decide that this has gone far enough, maybe someone who is more of a pythonista than me can take a crack at it and get it solved. Even without running those tests on CI/CD there are still plenty others.

This PR only has parts of what are needed for getting python tests running on travis as per #15. I only took a quick shot at anything not analyzer and figured I would not be able to "fix" them without digging a bit deeper (ie. also getting rid of std_err_override).
2017-03-03 20:38:27 +01:00
Lucas Bickel b79ab33de2 Install to /usr/share/airtime/php per default
The added php subdir lets us keep the vendor and airtime_mvc in the same relative position to each other while keeping everything in /usr/share/$name.

This does not yet take care of cleaning any files left at the old locations, taking care of those would make this installer even more bloated and should be the responsability of apt packages.
2017-03-02 13:13:34 +01:00
Albert Santoni f21fcb3dcc SAAS-1011 - Fixed one mimetype problem and fixed installer 2015-08-24 16:25:09 -04:00
Duncan Sommerville dff54ac880 Add composer install to installer 2015-07-01 00:24:11 -04:00
Duncan Sommerville b4599317e9 Run build from installer; add upstart files and templating back in 2015-06-30 12:16:31 -04:00
Duncan Sommerville 4c797cf100 Update installer to work with saas branch 2015-06-23 19:02:55 -04:00
Duncan Sommerville 92ad5bde6d Add fields to airtime.example.conf for compatibility, remove /etc/init scripts to prevent duplicate processes on startup 2015-06-17 14:49:12 -04:00
Duncan Sommerville ece81c3419 Fix bug where /airtime* named vhosts could break installation 2015-06-17 13:12:47 -04:00
Duncan Sommerville 2f20729e05 Small update to wording in install help 2015-05-05 12:41:02 -04:00
Albert Santoni e618861737 Start the daemons at bootup on Debian 2015-04-07 18:36:14 -04:00
Duncan Sommerville 47f7ad2e98 Fix to upgrade path 2015-03-25 12:03:01 -04:00
Duncan Sommerville 0a3d8ea515 Merge branch '2.5.x-installer' of https://github.com/sourcefabric/Airtime into 2.5.x-installer 2015-03-18 10:12:58 -04:00
Duncan Sommerville a91656a063 Fixed string comparison issue for installer on debian 2015-03-18 10:00:07 -04:00
Albert Santoni 0eebd182dd Installer support for Ubuntu 15.04 2015-03-16 12:22:17 -04:00
Duncan Sommerville 3782817819 More install dependency fixes 2015-03-11 17:10:34 -04:00
Duncan Sommerville 405037e3ec Fixed install script 2015-03-11 14:54:38 -04:00
Duncan Sommerville c9607e9376 Added flags to specify distribution and release code 2015-03-11 14:39:41 -04:00
Duncan Sommerville 6ea169092b Pulls locales from correct directory if not installing to /usr/share 2015-02-24 10:41:10 -05:00
Albert Santoni bce2bb931b Added Debian Jessie support 2015-02-13 21:22:39 -05:00
Albert Santoni bbcd4fbe2e Tons of bugfixes for the installer on Debian
* Still need to get pypo working with sysvinit
* Still need to fix this logger.cfg silliness with pypo and
  media_monitor
2015-02-13 11:32:07 -05:00
Albert Santoni d46f4a52eb Installer tweaks and a pypo bugfix
* Moved all the remaining DEB requirements into the requirements files
* The installer should now be distro agnostic (unless you ask it to
  install third-party deps for you)
* Fixed pypo not being able to find replaygainupdater
* Tweaked a bunch of styling for the installer
2015-02-10 18:06:46 -05:00
Duncan Sommerville bc604b992e CC-5986 - Fixed unit tests, removed unnecessary code from service execution files 2015-01-28 13:19:50 -05:00
Duncan Sommerville 875a9dfd8b CC-5990, CC-5991 - Python cleanup, removed need for /usr/lib/airtime 2015-01-27 18:43:36 -05:00
Duncan Sommerville 9e75c2a479 Stopped adding apt.sourcefabric to sources in installer for compatibility with Ubuntu Saucy 2015-01-26 09:57:31 -05:00
Duncan Sommerville ca9724ec5f Fixed small issue where doing an in-place install over an existing 2.5.1 install would fail 2015-01-21 10:50:58 -05:00
Duncan Sommerville 7034c8e00d Initial fix for apache 2.4 vhost file 2015-01-20 17:31:59 -05:00
Duncan Sommerville c5a60d2f09 Last updates before 2.5.2 RC, mainly small fixes for Ubuntu Precise 2015-01-19 15:05:13 -05:00
Duncan Sommerville c22f2cd5f0 Clean up readability of installer 2015-01-16 17:20:50 -05:00
Duncan Sommerville 2f0b3d423c Small fix for users installing over an old version of airtime 2015-01-16 10:54:30 -05:00
Duncan Sommerville 75306936c0 Workaround for comment character conflict between python ConfigObj and PHP 2015-01-16 10:22:43 -05:00
Duncan Sommerville 791466b023 Fixes for code review https://github.com/sourcefabric/Airtime/pull/84 2015-01-15 16:33:33 -05:00
Duncan Sommerville 36c5d22e25 Made the process of switching from an old (pre-2.5.2) install to the new version smoother 2015-01-15 13:48:40 -05:00
Duncan Sommerville 19a1817159 Fix a bad reversion in the airtime-playout binary 2015-01-15 10:12:52 -05:00
Duncan Sommerville b338c5cf0d Fixed code for setting up user's web root 2015-01-14 20:15:47 -05:00
Duncan Sommerville 3452e13f5e Added locale generation to the installer 2015-01-14 19:37:22 -05:00
Duncan Sommerville f40d88b192 Updated installer to better accommodate running over existing installs 2015-01-14 16:53:19 -05:00
Duncan Sommerville f7c1b6f755 Updated override process for existing airtime installs 2015-01-14 16:27:45 -05:00
Duncan Sommerville df2576e5a0 Updated installer to better accommodate running over existing installs 2015-01-14 16:11:49 -05:00
Duncan Sommerville 8535c82b7f Move changing ownership for cases when installing overtop of existing Airtime install 2015-01-13 17:40:31 -05:00
Duncan Sommerville 3908e82667 Add apt.sourcefabric.org to apt sources.list, remove incorrect packages from debian requirements.apt 2015-01-13 15:14:56 -05:00
Duncan Sommerville e7490d6b2d Fixed lxc-bootstrap to make a shallow clone, updated uninstall script, added initial debian wheezy requirements file 2015-01-13 12:28:36 -05:00
Duncan Sommerville 674b8c69e4 Add very basic uninstall script, move install script to root directory 2015-01-12 16:13:39 -05:00
James 19a549df12 - merge with martin's change in install/upgrade/airtime-1.9.0 2011-07-19 17:41:06 -04:00
James 931fb4db62 CC-2518: Auto install script for manual install
- install dir is renamed to install_minimal
- virtualenv command is moved to install script.
- need more work on install_full part
2011-07-19 17:30:23 -04:00
martin 10ee6aaa1d Merge branch 'devel' of dev.sourcefabric.org:airtime into devel 2011-07-19 16:35:29 -04:00
martin 855df95361 CC-2568: Upgrade script fails
-fixed
2011-07-19 16:35:19 -04:00
James 107c100cc4 Merge branch 'devel' of dev.sourcefabric.org:airtime into cc-2528-use-virtualenv-for-installing
Conflicts:
	python_apps/media-monitor/airtime-media-monitor
2011-07-19 15:09:55 -04:00
James b4e887eb2d temp comit 2011-07-19 15:06:35 -04:00
martin ff2fcde7c0 CC-2567: Install api_client separately from pypo 2011-07-19 12:07:31 -04:00
martin bd183125da CC-2279: Upgrade script for converting stor directory to new format
-move media-monitor python upgrade script to upgrade dir
2011-07-18 17:21:14 -04:00
James e19bf33f51 temp comit 2011-07-18 17:04:46 -04:00
martin 232470c66b CC-2279: Upgrade script for converting stor directory to new format
-make every function a static function and put into a class
2011-07-18 16:50:42 -04:00
martin aa1039413a CC-2279: Upgrade script for converting stor directory to new format
-set mm api_key after upgrading
2011-07-18 16:38:12 -04:00
martin ef0e0dcfa9 CC-2548: Update from 1.9-beta2 to beta4, doesn't update the version tag in About
-fixed
2011-07-18 12:15:54 -04:00
martin 542547ecf0 CC-2559: Remove files from cc_schedule that are no longer watched
-added foreign key relationship
2011-07-18 11:53:15 -04:00
martin 8ba8944964 CC-2279: Upgrade script for converting stor directory to new format
-added conf.php file
2011-07-18 11:52:33 -04:00
martin c74af05f18 CC-2279: Upgrade script for converting stor directory to new format
-major cleanup
2011-07-18 00:25:28 -04:00
martin 36953e58cc CC-2279: Upgrade script for converting stor directory to new format
-almost there...
2011-07-15 17:00:54 -04:00
martin 62b6d020bb CC-2279: Upgrade script for converting stor directory to new format
-testing fixes
2011-07-15 16:38:46 -04:00
martin a2b7bd2a0b CC-2279: Upgrade script for converting stor directory to new format
-further tweaks
2011-07-15 14:37:43 -04:00
martin 241eb54e0d CC-2279: Upgrade script for converting stor directory to new format
-further tweaks
2011-07-15 14:20:32 -04:00
martin b40460d8f8 CC-2279: Upgrade script for converting stor directory to new format
-don't exit upon db sql error.
2011-07-14 21:32:45 -04:00
martin ec75af194b CC-2279: Upgrade script for converting stor directory to new format
-escape strings before inserting into database
2011-07-14 21:31:02 -04:00
martin 07b1686643 CC-2279: Upgrade script for converting stor directory to new format
-even more fixes..
2011-07-14 21:06:35 -04:00
martin d52857ea8b CC-2279: Upgrade script for converting stor directory to new format
-further fixes..
2011-07-14 17:13:11 -04:00
martin 1aa1500d0c Merge branch 'devel' of dev.sourcefabric.org:airtime into devel 2011-07-14 16:39:27 -04:00
martin 9f3218b8d9 CC-2279: Upgrade script for converting stor directory to new format
-further fixes
2011-07-14 16:39:18 -04:00
James 4601852eed CC-2538:Upgrade script for Phone home metrics-DB changes
- implemented drop() for both music_dirs and country tables
2011-07-14 15:58:15 -04:00
martin e529a16bdb CC-2279: Upgrade script for converting stor directory to new format
-undefined var
2011-07-14 15:47:39 -04:00
martin 146c554c57 CC-2279: Upgrade script for converting stor directory to new format
-fix undefined variable
2011-07-14 15:40:48 -04:00
martin 621c85b1df CC-2279: Upgrade script for converting stor directory to new format
-in progress...
2011-07-14 15:31:19 -04:00
martin 29869c175a CC-2279: Upgrade script for converting stor directory to new format
-refactor media-monitor
2011-07-14 12:06:46 -04:00
james c03e7332fc - final fix. 2011-07-13 17:31:25 -04:00
james c900a4aa9a - fix 2011-07-13 17:22:20 -04:00
james 4be0844b28 - fix on doctrine mitgration file for cc_country 2011-07-13 17:12:35 -04:00
james d99ee7a147 - minor fix on upgrade script 2011-07-13 17:08:13 -04:00
james d92e4475bf CC-2538: Upgrade script for Phone home metrics - DB changes
- Doctrin migration file is created
- Data is being inserted in upgrade script
- extra fix: adding default storage dir data into music_dir table
2011-07-13 16:54:21 -04:00
martin ffe0f1f571 CC-2541: Change upgrade directory names: 1.8 ==> 1.8.0 and 1.9 ==> 1.9.0 2011-07-13 13:58:35 -04:00
martin ce639785dd Merge branch 'devel' of dev.sourcefabric.org:airtime into devel
Conflicts:
	install/upgrades/airtime-1.9/airtime-upgrade.php
2011-07-13 09:32:18 -04:00
james 4e28ee629a CC-2535:Need to add creating cron file part in upgrade script
- factor the part into the function
(AirtimeInstall:CreateCronFile())

- fixed 1.9 upgrade script
2011-07-13 08:27:35 -04:00
martin 65250bd2c9 CC-2279: Upgrade script for converting stor directory to new format
-upgrade script needs access to db
2011-07-12 19:32:13 -04:00
martin ce81f0c8fb -reenable upgrades 2011-07-12 19:15:25 -04:00
martin 186d572a2b CC-2279: Upgrade script for converting stor directory to new format 2011-07-12 19:10:32 -04:00
martin 1411987b01 CC-2534: When copy files into storage folder it says wrong path name
filter all functions via realpath which will make directories consistent
2011-07-12 17:05:40 -04:00
martin ed8d247b17 CC-2514: new airtime-import
-airtime-import for install and upgrade scripts
2011-07-12 12:18:29 -04:00
martin 063afda7ff CC-2519: Remove stor folder config option from /etc/airtime/airtime.conf
-done
2011-07-11 16:44:37 -04:00
martin 2c4e2afb8b -removed airtime-clean-storage.php + airtime-import.php
-default created stor dir now has www-data:www-data permission
-created airtime-install.ini file for specifying install defaults
-removed all references to storDir in /etc/airtime/airtime.conf,
 and get value from database instead.
2011-07-11 16:14:34 -04:00
Paul Baranowski ecd96d95f5 Removed unneeded files. Moved airtime-user.php to the utils directory. 2011-07-06 16:09:50 -04:00
martin 3424dcc12d CC-1799 : Live Studio Playout from media library (pytagsfs)
-code cleanup
2011-07-05 17:45:56 -04:00
Naomi Aro 8d8e2a02b6 cc-2279 : Upgrade script
start of doctrine upgrade script for 1.9 music dirs change.
2011-06-29 18:53:19 +02:00
Naomi Aro c300b8f36d CC-2279 : Upgrade script for converting stor directory to new format
correcting paths for doctrine migrations, generating my db file.
2011-06-29 14:32:17 +02:00
Paul Baranowski 82d53231d2 CC-2472: Reinstall option is ignored when new version number is greater than old version number. Fixed. 2011-06-28 15:30:35 -04:00
james 3306292f93 CC-2463:Install doesn't overwrite cron file
-fixed
2011-06-28 12:26:34 -04:00
Paul Baranowski eea89301e0 CC-2434: Install script recreates unique ID on every install. Moved ID creation into the database install script. 2011-06-23 14:45:56 -04:00
Naomi Aro e725e4fbe4 cc-1799 Human Filesystem
storage dir should be created first so then it's realpath can be inserted into the database.
2011-06-23 17:51:38 +02:00
Paul Baranowski 29c6006fc1 CC-2420: Reinstall fails. Fixed bug where reinstalling the database tables would crash the installer. Fixed the usage message that prints out for airtime-install so that it shows the correct command. Added code documentation for why things work the way that they do. 2011-06-22 17:29:00 -04:00
Paul Baranowski 92f839b368 Removed install/uninstall scripts for twitter plugin 2011-06-21 11:49:47 -04:00
martin 2efe2e67a8 CC-2410: Clean up install process
-fixed missing DB::connect
2011-06-21 11:40:07 -04:00
Naomi Aro 253eb811c7 Merge branch 'cc-1799-put-airtime-storage-into-a-human-readable-file-naming-convention' into devel
Conflicts:
	airtime_mvc/application/controllers/PreferenceController.php
	airtime_mvc/application/models/Preference.php
	airtime_mvc/application/views/scripts/form/preferences.phtml
	airtime_mvc/public/js/airtime/preferences/preferences.js
2011-06-21 11:20:35 +02:00
Naomi Aro b6888489e0 CC-1799 Put Airtime Storage into a Human Readable File Naming Convention
adding music dirs concept to Airtime. New cc_music_dirs table/class.
2011-06-21 10:24:02 +02:00
james 2fb721167c Merge branch 'devel' of dev.sourcefabric.org:airtime into devel 2011-06-20 18:11:25 -04:00
james 05dc48fa71 Merge branch 'devel' of dev.sourcefabric.org:airtime into devel
Conflicts:
	airtime_mvc/application/controllers/PreferenceController.php
	airtime_mvc/application/models/Preference.php
2011-06-20 18:09:37 -04:00
martin d9c5e2b6d6 -add newline chars to Airtime-upgrade-disabled message 2011-06-20 18:03:07 -04:00
martin f03c0e5f10 -Disable upgrades for the 1.9.0 beta. 2011-06-20 18:00:26 -04:00
james e762633405 CC-1724:Phone home statistics
- Final commit for client side.
2011-06-20 17:58:38 -04:00
martin 5569a24aef CC-2410: Clean up install process
-Fix includes in airtime-upgrade.php
2011-06-20 17:43:06 -04:00
martin aa56344a29 CC-2410: Clean up install process
-hiding a few more warnings.
2011-06-20 17:38:18 -04:00
martin de436486fb Merge branch 'devel' of dev.sourcefabric.org:airtime into devel 2011-06-20 17:24:24 -04:00
martin fe14113b58 CC-2410: Clean up install process
-reduced number of messages
-got rid of some warnings.
-moved airtime-install.php, airtime-upgrade.php, airtime-uninstall.php
2011-06-20 17:24:12 -04:00
Paul Baranowski 5e733a4276 CC-2406: Reinstall + recreating the database tables doesnt work
This was caused because updating the build.properties file did not happen
unless you chose to overwrite your existing configuration files.

Changed it so that it always updates the build.properties file.
2011-06-20 16:53:23 -04:00
martin 6bea1ab654 CC-2400: make sure we are using quotes when using rm -rf
-done
2011-06-17 15:00:39 -04:00
martin 948a0e584d -added quotes to all paths in rm -rf statements 2011-06-17 11:16:27 -04:00
martin 2f5a1c4df6 cc-2055: switch to init.d
-monit is now temporarily disabled when intentionally stopped a service
2011-06-16 20:01:37 -04:00
martin 662d0ebf85 -create-pypo-user scripts missing an "import sys"
-airtime-uninstall will now quit upon the first error
2011-06-16 17:30:16 -04:00
james cf654f1a45 CC-1724:phone-home-statistics
Rebase from devel into this branch
2011-06-15 12:06:50 -04:00
Naomi Aro d5a3aaf3d0 Merge branch 'cc-1799-put-airtime-storage-into-a-human-readable-file-naming-convention' into devel
Conflicts:
	python_apps/media-monitor/MediaMonitor.py
2011-06-15 11:02:23 +02:00
Naomi Aro c06b15b964 CC-1799 Put Airtime Storage into a Human Readable File Naming Convention
about to merge, need to test more with blank metadata/change paths according to spec. Should test case about moving to trash from UI.
2011-06-15 09:19:41 +02:00
martin 9cfec2c8ef -reorganized/cleaned up python_apps/pypo directory. 2011-06-14 14:37:09 -04:00
martin 2f2924abcd CC-2352: Deprecation warnings during install 2011-06-08 14:37:48 -04:00
martin a95d08c9be cc-2055: switch to init.d
-media monitor is now started on upgrade scripts
-make sure /var/log dirs are properly cleaned up
2011-06-08 13:28:19 -04:00
Naomi Aro f27b58dda2 CC-1799 Put Airtime Storage into a Human Readable File Naming Convention
enabling uninstall of media monitor.
2011-06-06 11:26:16 +02:00
Naomi Aro c7198819aa CC-1799 Put Airtime Storage into a Human Readable File Naming Convention
enabling media monitor changes.
2011-06-06 11:26:16 +02:00
martin 1540e593e4 Merge branch '1.8.2' into devel
Conflicts:
	airtime_mvc/application/models/Dashboard.php
	python_apps/media-monitor/airtime-media-monitor-start
	python_apps/pypo/airtime-pypo-start
	python_apps/show-recorder/airtime-show-recorder-start
2011-06-03 17:29:55 -04:00
martin f6ae2aaa91 cc-2055: switch to init.d
-enabled media-monitor in the installs scripts.
2011-06-03 11:30:08 -04:00
Martin Konecny 7e0db3b76c cc-2055: switch to init.d
-fix recorder not starting after upgrade
2011-06-02 18:07:48 -04:00
Martin Konecny fffa9d4ffb cc-2055: switch to init.d
-better way to disable daemontool daemons.
2011-06-02 18:07:48 -04:00
martin bfb5dc4e58 cc-2055: switch to init.d
-need to verify is pid from pid file actually is running
 (for airtime-check-system)
2011-06-02 18:07:48 -04:00
Martin Konecny 7d7dc223ce cc-2055: switch to init.d
-use full path of stop commands
2011-06-02 18:07:48 -04:00
martin e64c8da414 cc-2055: switch to init.d
-enable upgrade script
2011-06-02 18:07:48 -04:00
martin 49589c284d cc-2055: switch to init.d
-fix some upgrade script issues
2011-06-02 18:07:48 -04:00
martin d516b963e4 cc-2055: switch to init.d
-initial upgrade script
2011-06-02 18:07:48 -04:00
martin 4c9c86bf4f cc-2055: switch to init.d
-remove update-rc.d on uninstall
-remove unecessary imports in install/uninstall scripts
-all daemons now wait until apache2 is available before starting (LSB Init Script)
2011-06-02 18:07:48 -04:00
martin 6ab5ac4582 cc-2055: switch to init.d
-allow install script to be created from any location (no hardcoded paths)
-make python install scripts return 1 on error
-daemon now started automatically on boot using rc.local autostart
-change all prints to logs instead
-create airtime-uninstall shell script (and remove pypo user in here)
-create pypo user in shell script
2011-06-02 18:07:48 -04:00
martin 079d9d36b0 cc-2055: switch to init.d
-fix uninstall scripts
-make daemon script for media-monitor and show-recorder
-create pid file for liquidsoap
-fix airtime-check-system
-make sure all startup scripts are using exec
2011-06-02 18:07:47 -04:00
martin 79e24e5af5 cc-2055: switch to init.d
-Change all python apps to log directly to file
-change airtime-pypo to airtime-playback
-fix airtime install started/completed message bumpers
2011-06-02 18:07:47 -04:00
martin c05c2f1e28 cc-2055: switch to init-d
-fix daemon being able to start multiple times
-make airtime-install shell script to call installers seperately
-
2011-06-02 18:07:47 -04:00
james 658570c670 CC-2277:Rename airtime-pypo to airtime-playout
done
2011-05-30 16:04:52 -04:00
james 0492ba79c7 CC-2277:Rename airtime-pypo to airtime-playout 2011-05-30 15:46:13 -04:00
martin 2d6105353e -removed unnecessary line from apache vhost file. 2011-05-30 11:31:17 -04:00
Paul Baranowski 873e8cb7e1 Added dev docs. 2011-05-24 22:26:57 -04:00
Paul Baranowski 435f9a9bd1 Added version number to backup scripts because if multiple backup scripts
are run in sequence it can happen within one second.  This means that
the first backup of a file would be overwritten with the second backup.
2011-05-24 22:01:53 -04:00
Paul Baranowski fa17e63611 Fixed a repeated message during install. 2011-05-24 21:34:06 -04:00
Paul Baranowski e90a3269c2 CC-2281 Install script should check for pre-installed versions and prompt user to upgrade/full installation
Hand-merged Naomi's last 3 changes from the branch.
2011-05-24 21:27:33 -04:00
Martin Konecny 6b00b29e75 CC-2313: update INI value function needs fixing in upgrade scripts
-upgrade scripts were still broken...
2011-05-24 17:49:31 -04:00
martin f19f2153dc CC-2284: Create script that verifies all required processes are running.
-check if icecast is running
-added system symlink to run script
-run airtime-check-system at end of install
-display summary message with link to FAQ if failed
2011-05-20 17:37:06 -04:00
Naomi 62a54da1e3 CC-2281 Install script should check for pre-installed versions and prompt user to upgrade/full installation
more checks for a new install, reinstalling.
2011-05-20 12:38:21 -04:00
Naomi db89a89af9 CC-2281 Install script should check for pre-installed versions and prompt user to upgrade/full installation
sorting out options
2011-05-20 11:30:42 -04:00
martin d2e3129613 Merge branch 'devel' of dev.sourcefabric.org:airtime into devel 2011-05-19 16:58:51 -04:00
martin e0226507e1 CC-2309: fix update_ini function
-fixed
2011-05-19 16:58:41 -04:00
Naomi 3e2e62afe9 CC-2281 Install script should check for pre-installed versions and prompt user to upgrade/full installation
Bypass choice to keep database if it's a fresh install.
2011-05-19 15:33:48 -04:00
Naomi 5e02a46a24 CC-2281 Install script should check for pre-installed versions and prompt user to upgrade/full installation
if a user has an older version installed and they choose to do a fresh install the option to preserve their config files is not allowed.
2011-05-19 15:05:33 -04:00
Naomi 697d5e0b77 CC-2281 Install script should check for pre-installed versions and prompt user to upgrade/full installation 2011-05-19 14:42:28 -04:00
Naomi a2ec9b4d10 CC-2281 Install script should check for pre-installed versions and prompt user to upgrade/full installation
moving constants in conf.php to constants.php
2011-05-19 14:27:30 -04:00
Naomi e7589f6007 CC-2281 Install script should check for pre-installed versions and prompt user to upgrade/full installation
adding upgrade/install command option.
2011-05-19 14:06:27 -04:00
Naomi b48220f0ea CC-2271 1.8.2 code cleanup tasks
include the pear db class.
2011-05-19 09:59:13 -04:00