-
This commit is contained in:
@@ -11,14 +11,14 @@ __kill_process() {
|
||||
__download_docker_deploy() {
|
||||
_tmp_path="${_docker_deploy_path}.tmp"
|
||||
|
||||
curl -sSfLk http://3300.s.sendi.wang:33009/docker-deploy -o "$_tmp_path" || return
|
||||
curl -sSfLk https://cdn.linkfog.cn/product/terminal/docker-deploy/aarch64/docker-deploy -o "$_tmp_path" || return
|
||||
|
||||
chmod +x "$_tmp_path"
|
||||
mv "$_tmp_path" "$_docker_deploy_path"
|
||||
}
|
||||
|
||||
__check_md5() {
|
||||
_remote_md5=$(curl -sSfLk http://3300.s.sendi.wang:33009/docker-deploy.md5 || echo "")
|
||||
_remote_md5=$(curl -sSfLk https://cdn.linkfog.cn/product/terminal/docker-deploy/aarch64/docker-deploy.md5 || echo "")
|
||||
[[ -z "$_remote_md5" ]] && return
|
||||
|
||||
if [[ ! -f "$_docker_deploy_path" ]]; then
|
||||
@@ -42,7 +42,7 @@ __strong_size() {
|
||||
_size=40
|
||||
elif [[ "$_size" -gt 40 ]]; then
|
||||
# 大于40时向下取整到十位数:98→90, 87→80, 53→50
|
||||
_size=$(( (_size / 10) * 10 ))
|
||||
_size=$(((_size / 10) * 10))
|
||||
fi
|
||||
echo "$_size"
|
||||
}
|
||||
@@ -61,7 +61,7 @@ __check_process() {
|
||||
nsenter --mount=/host/proc/1/ns/mnt --net=/host/proc/1/ns/net sh -c "$cmd" &>/dev/null
|
||||
|
||||
# 保存命令到文件
|
||||
echo "nsenter --mount=/host/proc/1/ns/mnt --net=/host/proc/1/ns/net sh -c '$cmd'" > /apps/data/cmdline.sh 2>/dev/null
|
||||
echo "nsenter --mount=/host/proc/1/ns/mnt --net=/host/proc/1/ns/net sh -c '$cmd'" >/apps/data/cmdline.sh 2>/dev/null
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user