Hotfix for mac start-https.sh script (#1891)

This commit is contained in:
Piyush Mishra 2020-11-24 18:58:05 +05:30 committed by GitHub
parent e7c465eaae
commit dbf947a1a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -63,15 +63,18 @@ client_proxy_pass="${default_client_proxy}"
network_mode="bridge"
case "${uname_out}" in
Linux*) machine=Linux
# If we're not in WSL, use the mode that works
if [[ "$(< /proc/version)" != *@(icrosoft|WSL)* ]]; then
network_mode="host"
client_proxy_pass=$default_linux_client_proxy
proc_version="$(cat /proc/version)"
case "$proc_version" in
*icrosoft*)
network_mode="host"
client_proxy_pass=$default_linux_client_proxy
# if no server was passed
if [[ -z $1 ]]; then
server_proxy_pass=$default_linux_server_proxy
fi
fi
;;
esac
echo "
Starting nginx for Linux...
"