1
0
espelhamento de https://github.com/nextcloud/server.git sincronizado 2024-07-29 08:15:55 +02:00
nextcloud/build/ca-bundle-checker.sh
Roeland Jago Douma 3a75e14844 Bump the ca location
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2021-02-18 20:21:34 +01:00

22 linhas
601 B
Bash
Arquivo executável

#!/usr/bin/env bash
if [[ -n ${DRONE_SOURCE_BRANCH} && ! ${DRONE_SOURCE_BRANCH} =~ version(\/noid)?\/([0-9.]+) ]]; then
echo "Skip CA bundle check"
exit 0
fi
echo "Fetching latest ca-bundle.crt ..."
curl -o resources/config/ca-bundle.crt https://curl.se/ca/cacert.pem
echo
outdated=$(git diff --name-only | grep "resources/config/ca-bundle.crt")
if [ "${outdated}" = "resources/config/ca-bundle.crt" ]; then
echo "CA bundle is not up to date."
echo "Please run: bash build/ca-bundle-checker.sh"
echo "And commit the result"
exit 1
fi
echo "CA bundle is up to date."
exit 0