Merge "Fix awk expression" into stable/train

This commit is contained in:
Zuul 2021-10-12 23:46:00 +00:00 committed by Gerrit Code Review
commit da9e737e5a
1 changed files with 1 additions and 1 deletions

View File

@ -128,7 +128,7 @@ get_url_from_vhost () {
server_name=$(awk '/ServerName/ {print $2}' $vhost_file)
ssl_enabled=$(awk '/SSLEngine/ {print $2}' $vhost_file)
bind_port=$(grep -h "<VirtualHost .*>" $vhost_file | sed 's/<VirtualHost .*:\(.*\)>/\1/')
wsgi_alias=$(awk '/WSGIScriptAlias/ {print $2}' $vhost_file)
wsgi_alias=$(awk '/WSGIScriptAlias / {print $2; exit}' $vhost_file)
proto=http
if [[ $ssl_enabled == "on" ]]; then
proto=https