diff --git a/scripts/mysql/install.sh b/scripts/mysql/install.sh index 1a3c3c77..b7e9d357 100644 --- a/scripts/mysql/install.sh +++ b/scripts/mysql/install.sh @@ -90,10 +90,10 @@ mv mysql-${mysqlVersion} src # openssl wget -T 120 -t 3 -O ${mysqlPath}/openssl-1.1.1u.tar.gz ${downloadUrl}/openssl/openssl-1.1.1u.tar.gz -wget -T 20 -t 3 -O ${mysqlPath}/openssl-1.1.1u.tar.gz..checksum.txt ${downloadUrl}/openssl/openssl-1.1.1u.tar.gz..checksum.txt +wget -T 20 -t 3 -O ${mysqlPath}/openssl-1.1.1u.tar.gz.checksum.txt ${downloadUrl}/openssl/openssl-1.1.1u.tar.gz.checksum.txt # 校验 -if ! sha256sum --status -c openssl-1.1.1u.tar.gz..checksum.txt; then +if ! sha256sum --status -c openssl-1.1.1u.tar.gz.checksum.txt; then echo -e $HR echo "错误:OpenSSL 源码 checksum 校验失败,文件可能被篡改或不完整,已终止操作" rm -rf ${mysqlPath} @@ -102,7 +102,7 @@ fi tar -zxvf openssl-1.1.1u.tar.gz rm -f openssl-1.1.1u.tar.gz -rm -f openssl-1.1.1u.tar.gz..checksum.txt +rm -f openssl-1.1.1u.tar.gz.checksum.txt mv openssl-1.1.1u openssl cd openssl ./config --prefix=/usr/local/openssl-1.1 --openssldir=/usr/local/openssl-1.1