diff --git a/airtime_mvc/build/airtime-setup/forms/database-settings.php b/airtime_mvc/build/airtime-setup/forms/database-settings.php index a97bc672d..6a32dcacf 100644 --- a/airtime_mvc/build/airtime-setup/forms/database-settings.php +++ b/airtime_mvc/build/airtime-setup/forms/database-settings.php @@ -1,4 +1,9 @@
@@ -10,22 +15,26 @@

- + />
- + />
- + />
- + />
diff --git a/airtime_mvc/build/airtime-setup/forms/finish-settings.php b/airtime_mvc/build/airtime-setup/forms/finish-settings.php index 3bd33d795..4e7b7ff1d 100644 --- a/airtime_mvc/build/airtime-setup/forms/finish-settings.php +++ b/airtime_mvc/build/airtime-setup/forms/finish-settings.php @@ -1,4 +1,8 @@ diff --git a/airtime_mvc/build/airtime-setup/forms/rabbitmq-settings.php b/airtime_mvc/build/airtime-setup/forms/rabbitmq-settings.php index f287c6bb5..4f1ac1723 100644 --- a/airtime_mvc/build/airtime-setup/forms/rabbitmq-settings.php +++ b/airtime_mvc/build/airtime-setup/forms/rabbitmq-settings.php @@ -1,4 +1,9 @@ @@ -19,12 +24,14 @@
- + />
- + /> You probably want to change this! @@ -32,17 +39,20 @@
- + />
- + />
- + />
diff --git a/airtime_mvc/build/airtime.example.conf b/airtime_mvc/build/airtime.example.conf index 157d7140f..98c5c7887 100644 --- a/airtime_mvc/build/airtime.example.conf +++ b/airtime_mvc/build/airtime.example.conf @@ -107,23 +107,6 @@ vhost = /airtime # ---------------------------------------------------------------------- -# ---------------------------------------------------------------------- -# M O N I T -# ---------------------------------------------------------------------- -# -# monit_user: The username for the Monit user. -# The default is guest. -# -# monit_password: The password for the Monit user. -# The default is airtime. -# -[monit] -monit_user = guest -monit_password = airtime -# -# ---------------------------------------------------------------------- - - # ---------------------------------------------------------------------- # M E D I A M O N I T O R # ---------------------------------------------------------------------- diff --git a/install b/install index e1ec9ef6e..3cddb90d9 100755 --- a/install +++ b/install @@ -233,30 +233,35 @@ echo "/ | \ || | \ | | | / Y \| \ " echo "\____|__ /___||____|_ / |____| |___\____|__ /_______ / " echo -e " \/ \/ \/ \/ \n" + if [ -f /etc/airtime/airtime.conf ]; then - set +e - verbose "Stopping airtime services..." - service airtime-playout stop-with-monit - service airtime-media-monitor stop-with-monit - service airtime-liquidsoap stop-with-monit - verbose "...Done" + OLD_CONF=$(grep "[media-monitor]" /etc/airtime/airtime.conf) - echo "Existing Airtime installation detected. Your current /etc/airtime/airtime.conf \ -will be moved to /etc/airtime/airtime.conf.bak" - # If we don't remove the existing python files in /usr/lib and the - # /etc/init.d startup scripts, services won't work properly - rm -rf /usr/lib/airtime/ - rm /etc/init.d/airtime-* - # If the user selects an "in-place" install or passes in a web root, - # we need to replace the old apache airtime.conf - rm /etc/apache2/sites-available/airtime.conf - - if [ -d /usr/share/airtime -a web_root = /usr/share/airtime ]; then - rm -rf /usr/share/airtime + if [ -n "${OLD_CONF}" ]; then + set +e + verbose "Stopping airtime services..." + service airtime-playout stop-with-monit + service airtime-media-monitor stop-with-monit + service airtime-liquidsoap stop-with-monit + verbose "...Done" + + echo "Looks like you have an old version of Airtime. Your current /etc/airtime/airtime.conf \ +will be moved to /etc/airtime/airtime.conf.tmp" + # If we don't remove the existing python files in /usr/lib and the + # /etc/init.d startup scripts, services won't work properly + rm -rf /usr/lib/airtime/ + rm /etc/init.d/airtime-* + # If the user selects an "in-place" install or passes in a web root, + # we need to replace the old apache airtime.conf + rm /etc/apache2/sites-available/airtime.conf + + if [ -d /usr/share/airtime -a web_root = /usr/share/airtime ]; then + rm -rf /usr/share/airtime + fi + + mv /etc/airtime/airtime.conf /etc/airtime/airtime.conf.tmp + set -e fi - - mv /etc/airtime/airtime.conf /etc/airtime/airtime.conf.bak - set -e fi if [ "$apache" = "f" -a ${_i} -eq 1 ]; then