From 0ac26f1e8c8067fa632ec0226e882449a0e45b71 Mon Sep 17 00:00:00 2001 From: Michael Stanclift Date: Tue, 26 May 2020 11:52:28 -0500 Subject: [PATCH] Update gravity-sync.sh --- gravity-sync.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gravity-sync.sh b/gravity-sync.sh index d97edbb..0412a0d 100755 --- a/gravity-sync.sh +++ b/gravity-sync.sh @@ -145,7 +145,7 @@ function pull_gs { MESSAGE="Validating Permissions on ${GRAVITY_FI}" echo -en "${STAT} ${MESSAGE}" - GRAVDB_RWE=$(namei -m ${PIHOLE_DIR}/${GRAVITY_FI} | grep ${GRAVITY_FI} | awk '{print $1}') + GRAVDB_RWE=$(namei -m ${PIHOLE_DIR}/${GRAVITY_FI} | grep -v f: | grep ${GRAVITY_FI} | awk '{print $1}') if [ $GRAVDB_RWE == "-rw-r--r--" ] then echo -e "\r${GOOD} ${MESSAGE}" @@ -157,7 +157,7 @@ function pull_gs { MESSAGE="Setting Ownership on ${GRAVITY_FI}" echo -en "${STAT} ${MESSAGE}" - sudo chmod 644 ${PIHOLE_DIR}/${GRAVITY_FI} >/dev/null 2>&1 + sudo chmod 644 ${PIHOLE_DIR}/${GRAVITY_FI} >/dev/null 2>&1 error_validate fi