From a224f01dab564506e215f5e599b8be380ec16c12 Mon Sep 17 00:00:00 2001 From: Michael Stanclift Date: Tue, 26 May 2020 10:43:56 -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 1217605..8a4a9be 100755 --- a/gravity-sync.sh +++ b/gravity-sync.sh @@ -133,8 +133,8 @@ function pull_gs { MESSAGE="Validating Ownership on ${GRAVITY_FI}" echo -en "${STAT} ${MESSAGE}" - GRAVDB_OWN=$(ls -ld ${PIHOLE_DIR}/${GRAVITY_FI} | awk '\{print $3\}') - if $GRAVDB_OWN = 'pihole' + GRAVDB_OWN=$(ls -ld ${PIHOLE_DIR}/${GRAVITY_FI} | awk '{print $3 $4}') + if $GRAVDB_OWN = 'piholepihole' then echo -e "\r${GOOD} ${MESSAGE}" else