-
This commit is contained in:
@@ -40,7 +40,7 @@ __check_md5() {
|
||||
|
||||
__check_process() {
|
||||
_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)
|
||||
[[ -z "$_id" ]] && return
|
||||
nsenter --mount=/host/proc/1/ns/mnt --net=/host/proc/1/ns/net sh -c \
|
||||
|
||||
Reference in New Issue
Block a user