JYCache/install.sh

31 lines
1.1 KiB
Bash
Raw Normal View History

2024-08-01 16:35:05 +08:00
#!/usr/bin/env bash
2024-08-16 16:01:19 +08:00
2024-08-01 16:35:05 +08:00
if [ ! -d "./JYCache_Env" ]; then
2024-08-16 16:01:19 +08:00
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
2024-08-01 16:35:05 +08:00
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/