diff --git a/airtime_mvc/application/configs/config-check.php b/airtime_mvc/application/configs/config-check.php
index 90f0f47f8..8b083ba48 100755
--- a/airtime_mvc/application/configs/config-check.php
+++ b/airtime_mvc/application/configs/config-check.php
@@ -151,9 +151,9 @@ $result = $r1 && $r2;
} else {
?>">
Check that the airtime-media-monitor service is installed correctly in /etc/init
,
- and ensure that it's running in
initctl list | grep airtime-media-monitor
.
- If not, try
sudo service airtime-media-monitor start
.
- (Replace www-data with your web user if necessary)
+ and ensure that it's running with
+
initctl list | grep airtime-media-monitor
+ If not, try
sudo service airtime-media-monitor start
@@ -170,11 +170,10 @@ $result = $r1 && $r2;
">
- Check that the airtime-playout service is installed correctly in /etc/init
- and /etc/init.d
, and ensure that it's running with
-
sudo initctl list | grep airtime-playout
. If not, try
-
sudo -u www-data service airtime-playout restart
.
- (Replace www-data with your web user if necessary)
+ Check that the airtime-playout service is installed correctly in /etc/init
,
+ and ensure that it's running with
+
sudo initctl list | grep airtime-playout
+ If not, try
sudo service airtime-playout restart
@@ -191,11 +190,10 @@ $result = $r1 && $r2;
">
- Check that the airtime-liquidsoap service is installed correctly in /etc/init
- and /etc/init.d
, and ensure that it's running with
-
sudo initctl list | grep airtime-liquidsoap
. If not, try
-
sudo -u www-data service airtime-liquidsoap restart
.
- (Replace www-data with your web user if necessary)
+ Check that the airtime-liquidsoap service is installed correctly in /etc/init
,
+ and ensure that it's running with
+
sudo initctl list | grep airtime-liquidsoap
+ If not, try
sudo service airtime-liquidsoap restart
diff --git a/install b/install
index e1143f45d..64f5ddcfe 100755
--- a/install
+++ b/install
@@ -236,6 +236,14 @@ echo "/ | \ || | \ | | | / Y \| \ "
echo "\____|__ /___||____|_ / |____| |___\____|__ /_______ / "
echo -e " \/ \/ \/ \/ \n"
+if [ -f /etc/airtime/airtime.conf ]; then
+ # If we don't remove the existing python files in /usr/lib, services won't work properly
+ rm -rf /usr/lib/airtime/
+ echo -e "Existing Airtime installation detected. Your current /etc/airtime/airtime.conf\
+will be moved to /etc/airtime/airtime.conf.bak"
+ mv /etc/airtime/airtime.conf /etc/airtime/airtime.conf.bak
+fi
+
if [ "$apache" = "f" -a ${_i} -eq 1 ]; then
echo -e "Install default Airtime apache configuration? (Y/n): \c"
read IN
@@ -342,15 +350,15 @@ chown -R ${web_user}:${web_user} /run/airtime
verbose "...Done"
verbose "\n * Copying logging files..."
-cp -R ${AIRTIMEROOT}/python_apps/std_err_override /usr/lib/airtime/std_err_override
+cp -R ${AIRTIMEROOT}/python_apps/std_err_override /usr/lib/airtime/
verbose "...Done"
verbose "\n * Copying API client files..."
-cp -R ${AIRTIMEROOT}/python_apps/api_clients /usr/lib/airtime/api_clients
+cp -R ${AIRTIMEROOT}/python_apps/api_clients /usr/lib/airtime/
verbose "...Done"
verbose "\n * Copying media-monitor files..."
-cp -R ${AIRTIMEROOT}/python_apps/media-monitor/media-monitor /usr/lib/airtime/media-monitor
+cp -R ${AIRTIMEROOT}/python_apps/media-monitor/media-monitor /usr/lib/airtime/
cp -R ${AIRTIMEROOT}/python_apps/media-monitor/media-monitor2 /usr/lib/airtime/media-monitor/mm2
verbose "...Done"
@@ -396,21 +404,21 @@ if [ ! -d /var/log/airtime ]; then
mkdir -p /var/tmp/airtime/pypo/tmp/
mkdir -p /var/tmp/airtime/show-recorder/
- verbose "\n * Setting permissions on /var/log/airtime..."
- chmod -R a+x /var/log/airtime
- chown -R ${web_user}:${web_user} /var/log/airtime/
-
- verbose "\n * Setting permissions on /var/tmp/airtime..."
- chmod -R a+x /var/tmp/airtime
- chmod 755 /usr/lib/airtime/pypo/bin/liquidsoap_scripts/notify.sh
- chown -R ${web_user}:${web_user} /var/tmp/airtime/
- chown -R ${web_user}:${web_user} /usr/lib/airtime/
-
verbose "\n * Copying logrotate files..."
cp ${AIRTIMEROOT}/airtime_mvc/build/airtime-php.logrotate /etc/logrotate.d/airtime-php
cp /usr/lib/airtime/pypo/bin/liquidsoap_scripts/airtime-liquidsoap.logrotate /etc/logrotate.d/airtime-liquidsoap
fi
+verbose "\n * Setting permissions on /var/log/airtime..."
+chmod -R a+x /var/log/airtime
+chown -R ${web_user}:${web_user} /var/log/airtime/
+
+verbose "\n * Setting permissions on /var/tmp/airtime..."
+chmod -R a+x /var/tmp/airtime
+chmod 755 /usr/lib/airtime/pypo/bin/liquidsoap_scripts/notify.sh
+chown -R ${web_user}:${web_user} /var/tmp/airtime/
+chown -R ${web_user}:${web_user} /usr/lib/airtime/
+
loud "\n-----------------------------------------------------"
loud " * Installing PHP * "
loud "-----------------------------------------------------"
diff --git a/installer/lib/requirements-debian-wheezy.apt b/installer/lib/requirements-debian-wheezy.apt
old mode 100644
new mode 100755
diff --git a/python_apps/api_clients/api_client.py b/python_apps/api_clients/api_client.py
index c3b1431d0..6710c959b 100755
--- a/python_apps/api_clients/api_client.py
+++ b/python_apps/api_clients/api_client.py
@@ -84,7 +84,7 @@ api_config['update_stream_setting_table'] = 'update-stream-setting-table/api_key
api_config['get_files_without_silan_value'] = 'get-files-without-silan-value/api_key/%%api_key%%'
api_config['update_cue_values_by_silan'] = 'update-cue-values-by-silan/api_key/%%api_key%%'
api_config['api_base'] = 'api'
-api_config['bin_dir'] = '/usr/lib/airtime/api_clients'
+api_config['bin_dir'] = '/usr/lib/airtime/api_clients/'