Update gravity-sync.sh

This commit is contained in:
Michael Stanclift 2020-05-26 10:51:26 -05:00
parent a224f01dab
commit ad5696c246

View File

@ -134,7 +134,7 @@ function pull_gs {
MESSAGE="Validating Ownership on ${GRAVITY_FI}" MESSAGE="Validating Ownership on ${GRAVITY_FI}"
echo -en "${STAT} ${MESSAGE}" echo -en "${STAT} ${MESSAGE}"
GRAVDB_OWN=$(ls -ld ${PIHOLE_DIR}/${GRAVITY_FI} | awk '{print $3 $4}') GRAVDB_OWN=$(ls -ld ${PIHOLE_DIR}/${GRAVITY_FI} | awk '{print $3 $4}')
if $GRAVDB_OWN = 'piholepihole' if [ $GRAVDB_OWN == "piholepihole" ]
then then
echo -e "\r${GOOD} ${MESSAGE}" echo -e "\r${GOOD} ${MESSAGE}"
else else