diff --git a/VERSION b/VERSION deleted file mode 100644 index 5a1ef0b72..000000000 --- a/VERSION +++ /dev/null @@ -1,2 +0,0 @@ -PRODUCT_ID=Airtime -PRODUCT_RELEASE=2.5.0 diff --git a/airtime_mvc/application/configs/config-check.php b/airtime_mvc/application/configs/config-check.php index 381522136..58397d79f 100644 --- a/airtime_mvc/application/configs/config-check.php +++ b/airtime_mvc/application/configs/config-check.php @@ -191,7 +191,7 @@ $result = $r1 && $r2; ?>"> 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
+
initctl list | grep airtime-playout
If not, try
sudo service airtime-playout restart "> 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
+
initctl list | grep airtime-liquidsoap
If not, try
sudo service airtime-liquidsoap restart "> 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
+
initctl list | grep airtime-playout
If not, try
sudo service airtime-playout restart "> 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
+
initctl list | grep airtime-liquidsoap
If not, try
sudo service airtime-liquidsoap restart /dev/null - echo "Airtime Version ${PRODUCT_RELEASE}" + version=$(php -r 'require_once(__DIR__ . "/airtime_mvc/application/configs/constants.php"); echo AIRTIME_CODE_VERSION;') + echo "Airtime Version ${version}" exit 0 } @@ -58,7 +58,7 @@ in_place="f" postgres="f" apache="f" icecast="f" -install_dependencies="f" +ignore_dependencies="f" # Interactive _i=1 # Verbose @@ -104,8 +104,8 @@ while :; do --force) _i=0 ;; - --install-dependencies) - install_dependencies="t" + --ignore-dependencies) + ignore_dependencies="t" ;; --apache) apache="t" @@ -176,7 +176,7 @@ while :; do _i=0 ;; d) - install_dependencies="t" + ignore_dependencies="t" ;; a) apache="t" @@ -535,14 +535,6 @@ if [ ! -d "/srv/airtime" ]; then fi chown -R ${web_user}:${web_user} /srv/airtime -if [ "$install_dependencies" = "f" -a ${_i} -eq 1 ]; then - echo -e "Install external binary dependencies? (Y/n): \c" - read IN - if [ "$IN" = "y" -o "$IN" = "Y" ]; then - install_dependencies="t" - fi -fi - loud "\n-----------------------------------------------------" loud " * Installing Locales * " loud "-----------------------------------------------------" @@ -565,13 +557,19 @@ if [ "$dist" = "Debian" ]; then loudCmd "/usr/sbin/locale-gen" fi -if [ "$install_dependencies" = "t" ]; then +if [ "$ignore_dependencies" = "f" ]; then loud "\n-----------------------------------------------------" loud " * Installing External Dependencies * " loud "-----------------------------------------------------" verbose "\n * Reading requirements-${dist,,}-${code,,}.apt..." - loudCmd "apt-get -y -m --force-yes install $(grep -vE '^\s*#' ${SCRIPT_DIR}/installer/lib/requirements-${dist,,}-${code,,}.apt | tr '\n' ' ')" + set +e + if [ -f ${SCRIPT_DIR}/installer/lib/requirements-${dist,,}-${code,,}.apt ]; then + loudCmd "apt-get -y -m --force-yes install $(grep -vE '^\s*#' ${SCRIPT_DIR}/installer/lib/requirements-${dist,,}-${code,,}.apt | tr '\n' ' ')" + else + loudCmd "apt-get -y -m --force-yes install $(grep -vE '^\s*#' ${SCRIPT_DIR}/installer/lib/requirements-ubuntu-trusty.apt | tr '\n' ' ')" + fi + set -e fi verbose "\n * Restarting apache..." diff --git a/installer/apache/airtime-vhost b/installer/apache/airtime-vhost index a1060d875..bc6d8a85f 100644 --- a/installer/apache/airtime-vhost +++ b/installer/apache/airtime-vhost @@ -9,6 +9,11 @@ Order allow,deny Allow from all + # PHP's server values can be spoofed or incorrect if an + # Apache instance is behind a proxy, so set these here + UseCanonicalName On + UseCanonicalPhysicalPort On + Require all granted