From b7e31b61c3459975eb2ed7f9f625dbbe082a92c0 Mon Sep 17 00:00:00 2001 From: Michael Stanclift Date: Mon, 1 Jun 2020 15:38:07 -0500 Subject: [PATCH] Fix to pull custom.list --- gravity-sync.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gravity-sync.sh b/gravity-sync.sh index f78032d..1e60164 100755 --- a/gravity-sync.sh +++ b/gravity-sync.sh @@ -781,6 +781,12 @@ function md5_compare { echo_info fi else + if ${SSHPASSWORD} ${SSH_CMD} -p ${SSH_PORT} -i "$HOME/${SSH_PKIF}" ${REMOTE_USER}@${REMOTE_HOST} test -e ${PIHOLE_DIR}/${CUSTOM_DNS} + then + REMOTE_CUSTOM_DNS="1" + MESSAGE="${REMOTE_HOST} has ${CUSTOM_DNS}" + echo_info + fi MESSAGE="No ${CUSTOM_DNS} Detected on $HOSTNAME" echo_info fi