31 lines
1.1 KiB
Bash
Executable File
31 lines
1.1 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
if [ ! -d "./JYCache_Env" ]; then
|
|
case $(uname -m) in
|
|
x86_64)
|
|
wget https://madstorage.s3.cn-north-1.jdcloud-oss.com/JYCache_Env_x64.tgz
|
|
md5=`md5sum JYCache_Env_x64.tgz | awk {'print $1'}`
|
|
if [ "$md5" != "cd27e0db8b1fc33b88bf1c467ed012b8" ]; then
|
|
echo 'JYCache_Env version inconsistency!'
|
|
exit 1
|
|
fi
|
|
tar -zxvf JYCache_Env_x64.tgz
|
|
;;
|
|
aarch64)
|
|
wget https://madstorage.s3.cn-north-1.jdcloud-oss.com/JYCache_Env_arm64.tgz
|
|
md5=`md5sum JYCache_Env_arm64.tgz | awk {'print $1'}`
|
|
if [ "$md5" != "5717814115a9ce3f2fa7f6759449e5bf" ]; then
|
|
echo 'JYCache_Env version inconsistency!'
|
|
exit 1
|
|
fi
|
|
tar -zxvf JYCache_Env_arm64.tgz
|
|
;;
|
|
esac
|
|
fi
|
|
|
|
cp ./build/intercept/intercept_server JYCache_Env/
|
|
cp ./build/intercept/libintercept_client.so JYCache_Env/
|
|
cp ./build/global_cache/madfs_gc JYCache_Env/
|
|
cp ./build/global_cache/madfs_global_server JYCache_Env/
|
|
cp ./build/bin/s3fs JYCache_Env/
|