Browse Source

remove md5 sum check for machete image

master
filesite 3 months ago
parent
commit
23bf69328a
  1. 29
      install.sh

29
install.sh

@ -63,23 +63,18 @@ if [ $imgExist -eq 0 ]; then
fi fi
if [ -f ./machete.tar ]; then if [ -f ./machete.tar ]; then
# 2024-09-06更新 echo "machete的docker镜像下载完成,即将导入docker"
sumok="b0e6ba7e8769ba0144d80035e0936a4c" docker image load --input machete.tar
checkRes=`md5 machete.tar | grep -v grep | grep "${sumok}" | wc -l` # 再次确认image下载成功
if [ $checkRes -gt 0 ]; then detectDockerImageExists "filesite/machete"
echo "machete的docker镜像下载完成,即将导入docker" imgExist=$?
docker image load --input machete.tar if [ $imgExist -eq 0 ]; then
# 再次确认image下载成功 echo "⚠"
detectDockerImageExists "filesite/machete" echo "machete的docker镜像导入失败,请检查网络后重试"
imgExist=$? echo ""
if [ $imgExist -eq 0 ]; then exit 1
echo "⚠" else
echo "machete的docker镜像导入失败,请检查网络后重试" echo "machete的docker镜像导入完成,即将开始安装相册和视频系统"
echo ""
exit 1
else
echo "machete的docker镜像导入完成,即将开始安装相册和视频系统"
fi
fi fi
fi fi
fi fi

Loading…
Cancel
Save