fix: correct cachetool url #3303

This commit is contained in:
Alpha Snow 2022-11-28 10:21:14 +08:00 committed by GitHub
parent f5f389331a
commit ca74510f77
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1082,9 +1082,9 @@ ARG INSTALL_CACHETOOL=false
RUN if [ ${INSTALL_CACHETOOL} = true ]; then \ RUN if [ ${INSTALL_CACHETOOL} = true ]; then \
if [ $(php -r "echo PHP_MAJOR_VERSION;") = "7" ] && [ $(php -r "echo PHP_MINOR_VERSION;") -ge 1 ]; then \ if [ $(php -r "echo PHP_MAJOR_VERSION;") = "7" ] && [ $(php -r "echo PHP_MINOR_VERSION;") -ge 1 ]; then \
curl -sO http://gordalina.github.io/cachetool/downloads/cachetool.phar; \ curl -sO https://gordalina.github.io/cachetool/downloads/cachetool.phar; \
else \ else \
curl http://gordalina.github.io/cachetool/downloads/cachetool-3.2.1.phar -o cachetool.phar; \ curl https://gordalina.github.io/cachetool/downloads/cachetool-3.2.1.phar -o cachetool.phar; \
fi && \ fi && \
chmod +x cachetool.phar && \ chmod +x cachetool.phar && \
mv cachetool.phar /usr/local/bin/cachetool \ mv cachetool.phar /usr/local/bin/cachetool \