From bde7b16a80c1f046ebd3c39ba6fec482b657adee Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Tue, 22 Nov 2022 23:03:27 -0500 Subject: [PATCH] chore: reorder commands alphabetically --- plugins/nginx-vhosts/command-functions | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/plugins/nginx-vhosts/command-functions b/plugins/nginx-vhosts/command-functions index 60657449f..56bddc344 100755 --- a/plugins/nginx-vhosts/command-functions +++ b/plugins/nginx-vhosts/command-functions @@ -110,16 +110,6 @@ cmd-nginx-show-config() { cat "$DOKKU_ROOT/$APP/nginx.conf" } -cmd-nginx-stop() { - declare desc="stops the nginx server" - declare cmd="nginx:stop" - [[ "$1" == "$cmd" ]] && shift 1 - - touch "${DOKKU_LIB_ROOT}/data/nginx-vhosts/nginx.stopped" - fn-nginx-vhosts-nginx-init-cmd "stop" - fn-nginx-vhosts-nginx-init-cmd "disable" -} - cmd-nginx-start() { declare desc="starts the nginx server" declare cmd="nginx:start" @@ -130,6 +120,16 @@ cmd-nginx-start() { fn-nginx-vhosts-nginx-init-cmd "start" } +cmd-nginx-stop() { + declare desc="stops the nginx server" + declare cmd="nginx:stop" + [[ "$1" == "$cmd" ]] && shift 1 + + touch "${DOKKU_LIB_ROOT}/data/nginx-vhosts/nginx.stopped" + fn-nginx-vhosts-nginx-init-cmd "stop" + fn-nginx-vhosts-nginx-init-cmd "disable" +} + cmd-nginx-validate-config() { declare desc="validates and optionally cleans up invalid nginx configurations" declare cmd="nginx:validate-config"