From f5fbe9756b81fc8d2d3ae364bf78953d8bc24c01 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Fri, 4 Jun 2021 22:04:48 -0500 Subject: [PATCH] Update pihole-sync --- pihole-sync | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pihole-sync b/pihole-sync index 95e04dc..d87db55 100755 --- a/pihole-sync +++ b/pihole-sync @@ -32,7 +32,7 @@ update='December 26, 2020' # Project Home: https://github.com/stevejenkins/pihole-cloudsync ########################################################################### # CONSTANTS -if [ -d "/opt/docker-pi-hole/etc-pihole" ]; then +if [ -f "/opt/pihole-docker" ]; then personal_git_dir='/opt/my-pihole-sync' else personal_git_dir='/usr/local/bin/my-pihole-sync' @@ -105,7 +105,7 @@ pull_initialize () { # Overwrite local files cp $custom_list $pihole_dir cp $cname_list $dnsmasq_dir - if [ ! -d "/opt/docker-pi-hole/etc-pihole" ]; then + if [ ! -f "/opt/pihole-docker" ]; then cp $localdomains_list $dnsmasq_dir fi @@ -172,7 +172,7 @@ pull () { $SUDO service pihole-FTL stop cp $custom_list $pihole_dir cp $cname_list $dnsmasq_dir - if [ ! -d "/opt/docker-pi-hole/etc-pihole" ]; then + if [ ! -f "/opt/pihole-docker" ]; then cp $localdomains_list $dnsmasq_dir fi sqlite3 $gravity_db "DROP TABLE adlist;"