This commit is contained in:
Eliezer Croitoru 2021-07-18 18:27:46 +03:00
parent dee4feefe2
commit b370aa1388

View File

@ -13,8 +13,7 @@ REGEX_FLAG_ENABLED="0"
LOCK_FILE="/tmp/dst-domain-cron-lockfile"
export CA_CERT_BUNDLE_PATH="/pfrm2.0/opt/fw1/bin/ca-bundle.crt"
export SSL_CERT_FILE="${CA_CERT_BUNDLE_PATH}"
alias curl_cli="curl_cli --cacert ${CA_CERT_BUNDLE_PATH}"
#alias curl_cli="curl_cli --cacert ${CA_CERT_BUNDLE_PATH}"
if [ -f "${LOCK_FILE}" ];then
echo "Lockfile exits, stopping update"
@ -115,7 +114,7 @@ fi
TMP_DOWNLOAD_FILE=$(mktemp)
curl_cli --cacert "${CA_CERT_BUNDLE_PATH}" -s "${URL}" -o ${TMP_DOWNLOAD_FILE}
curl_cli --cacert "${CA_CERT_BUNDLE_PATH}" -s "${URL}" -o "${TMP_DOWNLOAD_FILE}"
RES=$?
if [ "${RES}" -gt "0" ];then