Update 'cron-example-with-diff-dstdom.sh'

This commit is contained in:
elicro 2021-12-14 00:08:18 +02:00
parent 17a92a85de
commit 8848d6e102

View File

@ -140,6 +140,7 @@ fi
TMP_DOWNLOAD_FILE=$(mktemp) TMP_DOWNLOAD_FILE=$(mktemp)
# The next is to avoid missing new line in the end of the file in some cases
/opt/fw1/bin/curl_cli -s --cacert "${SSL_CERT_FILE}" "${URL}" -o "${TMP_DOWNLOAD_FILE}" >> /tmp/log.1 /opt/fw1/bin/curl_cli -s --cacert "${SSL_CERT_FILE}" "${URL}" -o "${TMP_DOWNLOAD_FILE}" >> /tmp/log.1
RES="$?" RES="$?"
if [ "${RES}" -gt "0" ];then if [ "${RES}" -gt "0" ];then
@ -149,6 +150,8 @@ if [ "${RES}" -gt "0" ];then
rm -fv "${LOCK_FILE}" rm -fv "${LOCK_FILE}"
exit ${RES} exit ${RES}
fi fi
# The next is to avoid missing new line in the end of the file in some cases
echo "" >> "${TMP_DOWNLOAD_FILE}"
TMP_CLISH_UPDATE_FILE=$( mktemp ) TMP_CLISH_UPDATE_FILE=$( mktemp )