deploy(M00-E): 补充EMQX检查模板

This commit is contained in:
Codex
2026-06-15 16:48:30 +08:00
parent 4cb3ab6529
commit 86f7da2168
21 changed files with 210 additions and 35 deletions
+5 -14
View File
@@ -16,6 +16,8 @@ SETUP_DIR="${SCRIPT_DIR}/scripts/setup"
. "${SETUP_DIR}/deploy-business.sh"
# shellcheck source=scripts/setup/domain-https.sh
. "${SETUP_DIR}/domain-https.sh"
# shellcheck source=scripts/setup/emqx.sh
. "${SETUP_DIR}/emqx.sh"
# shellcheck source=scripts/setup/backup.sh
. "${SETUP_DIR}/backup.sh"
# shellcheck source=scripts/setup/restore.sh
@@ -60,20 +62,7 @@ show_status() {
}
show_mqtt_status() {
qipai_info "EMQX target: native Ubuntu Apt package, no Docker"
qipai_info "MQTT broker host: 101.42.38.246"
qipai_info "MQTTX on server: forbidden"
if command -v emqx >/dev/null 2>&1; then
qipai_pass "emqx command exists"
emqx version 2>/dev/null || true
else
qipai_warn "emqx command not found"
fi
if command -v mosquitto_pub >/dev/null 2>&1; then
qipai_pass "mosquitto-clients available"
else
qipai_warn "mosquitto-clients not installed"
fi
qipai_emqx_status
}
show_https_status() {
@@ -118,6 +107,8 @@ elif [ "${1:-}" = "--status" ]; then
show_status
elif [ "${1:-}" = "--https" ]; then
show_https_status
elif [ "${1:-}" = "--mqtt" ]; then
show_mqtt_status
elif [ "${1:-}" = "--diagnose" ]; then
qipai_diagnose
else