This commit is contained in:
Eliezer Croitoru 2021-07-18 18:11:52 +03:00
parent 92809d8c16
commit 37d6a830a0
2 changed files with 6 additions and 2 deletions

View File

@ -11,6 +11,10 @@ DRY_RUN="0"
CLEANUP_AFTER="1"
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}"
if [ -f "${LOCK_FILE}" ];then
echo "Lockfile exits, stopping update"
@ -111,7 +115,7 @@ fi
TMP_DOWNLOAD_FILE=$(mktemp)
wget "${URL}" -O ${TMP_DOWNLOAD_FILE}
curl_cli --cacert ${CA_CERT_BUNDLE_PATH} -s "${URL}" -o ${TMP_DOWNLOAD_FILE}
RES=$?
if [ "${RES}" -gt "0" ];then

View File

@ -28,7 +28,7 @@ echo
DST_DOMAIN_LIST_URL=$(head -1 block-list-dst-domain-url)
APP_NAME="NgTechBlockListDstDomain"
echo "*/1 * * * * bin/bash ${SCRIPT_PATH} ${APP_NAME} ${DST_DOMAIN_LIST_URL} >/dev/null 2>&1"
echo "*/1 * * * * /bin/bash ${SCRIPT_PATH} ${APP_NAME} ${DST_DOMAIN_LIST_URL} >/dev/null 2>&1"
SCRIPT_MD5_SUM=$(md5sum collect-clish-scripts.sh|awk '{print $1}')