fix: check if nginx is running before reloading during an app deletion
The purpose of the reload is to remove nginx from being loaded. If nginx isn't running, then by definition the config is not loaded. Closes #6832
This commit is contained in:
@@ -10,7 +10,9 @@ trigger-nginx-vhosts-post-delete() {
|
||||
declare APP="$1"
|
||||
|
||||
fn-plugin-property-destroy "nginx" "$APP"
|
||||
restart_nginx "$@" >/dev/null
|
||||
if fn-nginx-vhosts-nginx-is-running; then
|
||||
restart_nginx "$@" >/dev/null
|
||||
fi
|
||||
rm -rf "${DOKKU_LIB_ROOT}/data/nginx-vhosts/app-$APP"
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user