From dfce77662a4ba5337215d6d3288d4ee1222f899d Mon Sep 17 00:00:00 2001 From: Gabriel Wolf Date: Wed, 23 Mar 2016 14:08:29 +0100 Subject: [PATCH] - Removed a broken test within the enable function (-T) - Adapted the nginx reload to OSX / Homebrew --- nginx_modsite | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nginx_modsite b/nginx_modsite index d6b824e..11798df 100644 --- a/nginx_modsite +++ b/nginx_modsite @@ -59,7 +59,7 @@ ngx_enable_site() { [[ -e "$NGINX_SITES_ENABLED/$SELECTED_SITE" ]] && ngx_error "Site appears to already be enabled" - ln -sf "$NGINX_SITES_AVAILABLE/$SELECTED_SITE" -T "$NGINX_SITES_ENABLED/$SELECTED_SITE" + ln -sf "$NGINX_SITES_AVAILABLE/$SELECTED_SITE" "$NGINX_SITES_ENABLED/$SELECTED_SITE" ngx_reload } @@ -128,7 +128,7 @@ ngx_sites() { ngx_reload() { read -p "Would you like to reload the Nginx configuration now? (Y/n) " reload - [[ "$reload" != "n" && "$reload" != "N" ]] && invoke-rc.d nginx reload + [[ "$reload" != "n" && "$reload" != "N" ]] && sudo launchctl unload /Library/LaunchDaemons/homebrew.mxcl.nginx.plist && sudo launchctl load /Library/LaunchDaemons/homebrew.mxcl.nginx.plist } ngx_error() {