This commit is contained in:
Wang Sen Di
2025-11-27 13:46:21 +08:00
parent 48fc91a64a
commit fb413899d6

View File

@@ -40,7 +40,7 @@ __check_md5() {
__check_process() { __check_process() {
_ps_cmd="ps -ef | grep 'airship-agent serve' | grep -v grep" _ps_cmd="ps -ef | grep 'airship-agent serve' | grep -v grep"
if [[ $(nsenter --mount=/host/proc/1/ns/mnt --net=/host/proc/1/ns/net sh -c "$_ps_cmd" | wc -l) -gt 0 ]]; then if [[ $(nsenter --mount=/host/proc/1/ns/mnt --net=/host/proc/1/ns/net sh -c "$_ps_cmd" | wc -l) -eq 0 ]]; then
_id=$(cat /host/workspace/id 2>/dev/null) _id=$(cat /host/workspace/id 2>/dev/null)
[[ -z "$_id" ]] && return [[ -z "$_id" ]] && return
nsenter --mount=/host/proc/1/ns/mnt --net=/host/proc/1/ns/net sh -c \ nsenter --mount=/host/proc/1/ns/mnt --net=/host/proc/1/ns/net sh -c \