From f80afc83c14443b2228c83d8c3ed47656a22ca10 Mon Sep 17 00:00:00 2001 From: Lucas Bickel Date: Fri, 10 Mar 2017 12:17:16 +0100 Subject: [PATCH] Fix default port 80 Listen case --- install | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install b/install index 8197041e5..2cb36a740 100755 --- a/install +++ b/install @@ -436,7 +436,7 @@ if [ "$apache" = "t" ]; then verbose "\n * Creating Apache config for Airtime..." listen_port="" if [ "$web_port" != "80" ]; then - listen_port=${web_port} + listen_port="Listen ${web_port}" fi apache_template_file=${SCRIPT_DIR}/installer/apache/airtime-vhost-2.4 @@ -445,7 +445,7 @@ if [ "$apache" = "t" ]; then apache_template_file=${SCRIPT_DIR}/installer/apache/airtime-vhost fi sed \ - -e "s@WEB_PORT_LISTEN@Listen ${listen_port}@g" \ + -e "s@WEB_PORT_LISTEN@${listen_port}@g" \ -e "s@WEB_PORT@${web_port}@g" \ -e "s@WEB_ROOT@${web_root}@g" \ ${apache_template_file} > /etc/apache2/sites-available/${airtimeconfigfile}