From d3cc98393280513ef21feb6e2362eb1d60db5c8b Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Fri, 4 Jun 2021 22:02:10 -0500 Subject: [PATCH] Update pihole-sync --- pihole-sync | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pihole-sync b/pihole-sync index 2639c23..95e04dc 100755 --- a/pihole-sync +++ b/pihole-sync @@ -32,7 +32,12 @@ update='December 26, 2020' # Project Home: https://github.com/stevejenkins/pihole-cloudsync ########################################################################### # CONSTANTS -personal_git_dir='/usr/local/bin/my-pihole-sync' +if [ -d "/opt/docker-pi-hole/etc-pihole" ]; then + personal_git_dir='/opt/my-pihole-sync' +else + personal_git_dir='/usr/local/bin/my-pihole-sync' +fi + # if [ -d "/opt/docker-pi-hole/etc-pihole" ]; then # pihole_dir='/opt/docker-pi-hole/etc-pihole'