Fix permission validation

This commit is contained in:
Michael Stanclift 2020-05-29 13:51:12 -05:00
parent 810e28aa0e
commit 569bce284e

View File

@ -216,7 +216,7 @@ function pull_gs {
MESSAGE="Validating Permissions on ${CUSTOM_DNS}"
echo_stat
GRAVDB_RWE=$(namei -m ${PIHOLE_DIR}/${CUSTOM_DNS} | grep -v f: | grep ${CUSTOM_DNS} | awk '{print $1}')
CUSTOMLS_RWE=$(namei -m ${PIHOLE_DIR}/${CUSTOM_DNS} | grep -v f: | grep ${CUSTOM_DNS} | awk '{print $1}')
if [ $CUSTOMLS_RWE = "-rw-r--r--" ]
then
echo_good