Hotfix for mac start-https.sh script (#1891)
This commit is contained in:
parent
e7c465eaae
commit
dbf947a1a6
|
|
@ -63,15 +63,18 @@ client_proxy_pass="${default_client_proxy}"
|
||||||
network_mode="bridge"
|
network_mode="bridge"
|
||||||
case "${uname_out}" in
|
case "${uname_out}" in
|
||||||
Linux*) machine=Linux
|
Linux*) machine=Linux
|
||||||
# If we're not in WSL, use the mode that works
|
|
||||||
if [[ "$(< /proc/version)" != *@(icrosoft|WSL)* ]]; then
|
proc_version="$(cat /proc/version)"
|
||||||
network_mode="host"
|
case "$proc_version" in
|
||||||
client_proxy_pass=$default_linux_client_proxy
|
*icrosoft*)
|
||||||
|
network_mode="host"
|
||||||
|
client_proxy_pass=$default_linux_client_proxy
|
||||||
# if no server was passed
|
# if no server was passed
|
||||||
if [[ -z $1 ]]; then
|
if [[ -z $1 ]]; then
|
||||||
server_proxy_pass=$default_linux_server_proxy
|
server_proxy_pass=$default_linux_server_proxy
|
||||||
fi
|
fi
|
||||||
fi
|
;;
|
||||||
|
esac
|
||||||
echo "
|
echo "
|
||||||
Starting nginx for Linux...
|
Starting nginx for Linux...
|
||||||
"
|
"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user