Fixing the sed command for mac os x in Nginx configuration template. (#126)
This commit is contained in:
parent
1d726dac20
commit
a4fd349c0b
|
|
@ -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
|
||||
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
|
||||
Loading…
Reference in New Issue
Block a user