WechatOnCloud/fnos/woc/cmd/main
Kris e35f1d64cf feat: 初始化项目,添加完整的微信云部署方案与面板实现
包含以下核心内容:
1.  完整的Docker容器化部署方案,支持多架构amd64/arm64
2.  自研Web管理面板,包含登录认证、实例管理、权限控制
3.  微信实例容器镜像,内置中文字体与输入法修复
4.  飞牛OS应用打包适配
5.  完整的文档与运维指南
2026-07-05 03:50:30 +08:00

27 lines
571 B
Bash
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/bin/bash
# fnOS 应用生命周期入口。Docker 类应用的启停由应用中心直接执行 compose
# 这里 start/stop 只需返回成功status 用首个容器的运行状态代表应用状态。
set -u
COMPOSE_FILE="$(dirname "$0")/../app/docker/docker-compose.yaml"
CONTAINER="woc-panel"
is_running() {
[ "$(docker inspect -f '{{.State.Running}}' "$CONTAINER" 2>/dev/null)" = "true" ]
}
case "${1:-}" in
start)
exit 0
;;
stop)
exit 0
;;
status)
if is_running; then exit 0; else exit 3; fi
;;
*)
exit 0
;;
esac