Conditionally restart NGINX
Conditionally restart NGINX

Before restarting nginx, check if the current app is using a proxy and if the selected proxy is in fact NGINX. Only then should we bother invoking the nginx reload.

Fixes https://github.com/dokku/dokku/issues/4987
dokku/dokku,claytonbrown/dokku,claytonbrown/dokku,claytonbrown/dokku,dokku/dokku,claytonbrown/dokku,dokku/dokku,claytonbrown/dokku,dokku/dokku,claytonbrown/dokku,dokku/dokku,dokku/dokku,claytonbrown/dokku,dokku/dokku,claytonbrown/dokku,dokku/dokku