Fix default port 80 Listen case

This commit is contained in:
Lucas Bickel 2017-03-10 12:17:16 +01:00
parent 7b3275b449
commit f80afc83c1
1 changed files with 2 additions and 2 deletions

View File

@ -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}