chore: reorder commands alphabetically

This commit is contained in:
Jose Diaz-Gonzalez committed 2022-11-29 01:38:36 -05:00
1 parent 5c205b9e27
commit bde7b16a80
1 file changed
+10 -10
+10 -10
View File
@@ -110,16 +110,6 @@ cmd-nginx-show-config() {
cat "$DOKKU_ROOT/$APP/nginx.conf" 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() { cmd-nginx-start() {
declare desc="starts the nginx server" declare desc="starts the nginx server"
declare cmd="nginx:start" declare cmd="nginx:start"
@@ -130,6 +120,16 @@ cmd-nginx-start() {
fn-nginx-vhosts-nginx-init-cmd "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() { cmd-nginx-validate-config() {
declare desc="validates and optionally cleans up invalid nginx configurations" declare desc="validates and optionally cleans up invalid nginx configurations"
declare cmd="nginx:validate-config" declare cmd="nginx:validate-config"