33
This commit is contained in:
parent
92809d8c16
commit
37d6a830a0
@ -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
|
||||
|
@ -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}')
|
||||
|
Loading…
Reference in New Issue
Block a user