Fixing the sed command for mac os x in Nginx configuration template. (#126)

This commit is contained in:
Arpit Mohan 2020-07-20 17:51:10 +05:30 committed by GitHub
parent 1d726dac20
commit a4fd349c0b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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