diff --git a/deploy/template/nginx_app.conf.sh b/deploy/template/nginx_app.conf.sh index e0f0247874..e543ff9f66 100644 --- a/deploy/template/nginx_app.conf.sh +++ b/deploy/template/nginx_app.conf.sh @@ -117,5 +117,10 @@ $NGINX_SSL_CMNT $NGINX_SSL_CMNT } ' > nginx_app.conf -sed -i "s/\$NGINX_SSL_CMNT/$NGINX_SSL_CMNT/g" nginx_app.conf -sed -i "s/\$custom_domain/$custom_domain/g" nginx_app.conf \ No newline at end of file +if [[ "$OSTYPE" == "darwin"* ]]; then + sed -i '' "s/\$NGINX_SSL_CMNT/$NGINX_SSL_CMNT/g" nginx_app.conf + sed -i '' "s/\$custom_domain/$custom_domain/g" nginx_app.conf +else + sed -i "s/\$NGINX_SSL_CMNT/$NGINX_SSL_CMNT/g" nginx_app.conf + sed -i "s/\$custom_domain/$custom_domain/g" nginx_app.conf +fi \ No newline at end of file