From 1268d882772dd9f3f77f1b20a5a66bba0320225c Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Mon, 31 May 2021 19:59:57 -0500 Subject: [PATCH] Update pihole-sync --- pihole-sync | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pihole-sync b/pihole-sync index 436ec7e..0e4971e 100755 --- a/pihole-sync +++ b/pihole-sync @@ -60,11 +60,11 @@ if [ -d "/opt/docker-pi-hole/etc-pihole" ]; then else SUDO='docker exec -it pihole' fi -else { +else if [ "$EUID" -ne 0 ] then SUDO='sudo' fi -} +fi # FUNCTIONS push_initialize () {