Fix default port 80 Listen case
This commit is contained in:
parent
7b3275b449
commit
f80afc83c1
4
install
4
install
|
@ -436,7 +436,7 @@ if [ "$apache" = "t" ]; then
|
||||||
verbose "\n * Creating Apache config for Airtime..."
|
verbose "\n * Creating Apache config for Airtime..."
|
||||||
listen_port=""
|
listen_port=""
|
||||||
if [ "$web_port" != "80" ]; then
|
if [ "$web_port" != "80" ]; then
|
||||||
listen_port=${web_port}
|
listen_port="Listen ${web_port}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
apache_template_file=${SCRIPT_DIR}/installer/apache/airtime-vhost-2.4
|
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
|
apache_template_file=${SCRIPT_DIR}/installer/apache/airtime-vhost
|
||||||
fi
|
fi
|
||||||
sed \
|
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_PORT@${web_port}@g" \
|
||||||
-e "s@WEB_ROOT@${web_root}@g" \
|
-e "s@WEB_ROOT@${web_root}@g" \
|
||||||
${apache_template_file} > /etc/apache2/sites-available/${airtimeconfigfile}
|
${apache_template_file} > /etc/apache2/sites-available/${airtimeconfigfile}
|
||||||
|
|
Loading…
Reference in New Issue