Merge "Fix awk expression" into stable/train
This commit is contained in:
commit
da9e737e5a
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue