chore: reorder commands alphabetically
This commit is contained in:
@@ -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"
|
||||||
|
|||||||
Reference in New Issue
Block a user