Update pihole-sync

This commit is contained in:
2021-06-04 22:04:48 -05:00
parent d3cc983932
commit f5fbe9756b

View File

@@ -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;"