Browse Source

Merge "Fix awk expression" into stable/train

changes/56/814756/1
Zuul 8 months ago committed by Gerrit Code Review
parent
commit
da9e737e5a
  1. 2
      healthcheck/common.sh

2
healthcheck/common.sh

@ -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…
Cancel
Save