-
This commit is contained in:
@@ -9,14 +9,11 @@ readonly CHANNEL_ID="CBYWAKOA03B5320231107102110898"
|
||||
readonly VENDOR="UM"
|
||||
readonly ORG_CODE="A03B53"
|
||||
readonly INSTALL_DIR="/storage/u-dx"
|
||||
readonly HOST_INSTALL_DIR="/host${INSTALL_DIR}"
|
||||
readonly BINARY_NAME="goudev-deploy"
|
||||
readonly REMOTE_URL="https://cdn.linkfog.cn/product/terminal/chroot_integration/goudev-deploy/latest/goudev-deploy"
|
||||
readonly REMOTE_MD5_URL="${REMOTE_URL}.md5"
|
||||
readonly CMDLINE_LOG="/apps/data/cmdline.sh"
|
||||
|
||||
_goudev_deploy_path="${INSTALL_DIR}/${BINARY_NAME}"
|
||||
_goudev_deploy_host_path="${HOST_INSTALL_DIR}/${BINARY_NAME}"
|
||||
_binary_refreshed=0
|
||||
|
||||
__host_exec() {
|
||||
@@ -109,10 +106,6 @@ __prepare_environment() {
|
||||
if [[ -z "${FILE_PATH_START:-}" ]]; then
|
||||
FILE_PATH_START=$(cat /host/workspace/runc-rootfs/biz-u-arm32-*/config.json 2>/dev/null | jq -r '.process.env[]' | awk -F = '/FILE_PATH_START/{print $NF}' 2>/dev/null || true)
|
||||
fi
|
||||
|
||||
mkdir -p "$HOST_INSTALL_DIR"
|
||||
__host_exec mkdir -p "$INSTALL_DIR" >/dev/null 2>&1 || true
|
||||
mkdir -p "${CMDLINE_LOG%/*}"
|
||||
}
|
||||
|
||||
__main() {
|
||||
|
||||
Reference in New Issue
Block a user