From b1a1c3ecf3cfc1bef2a99e23ec04808e85447810 Mon Sep 17 00:00:00 2001 From: Jon Stephens Date: Thu, 9 Dec 2021 21:12:37 -0800 Subject: [PATCH] Minor bug fixes (testing on remote machines) --- pihole-cloudsync | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pihole-cloudsync b/pihole-cloudsync index dc34f74..53ca2df 100755 --- a/pihole-cloudsync +++ b/pihole-cloudsync @@ -97,12 +97,12 @@ fi export_tables () { $SUDO sqlite3 $gravity_db ".dump --preserve-rowids $DB_TABLES" > $DB_DUMP_FILE for t in $DB_TABLES; do - sed -i "/BEGIN TRAN/a DROP TABLE IF EXISTS $t;" $DB_DUMP_FILE + sed -i "/BEGIN TRAN/a DROP TABLE IF EXISTS '$t';" $DB_DUMP_FILE done } import_tables () { - $SUDO sqlite3 $gravity_db ".read '|$DB_DUMP_FILE'" + $SUDO sqlite3 $gravity_db ".read $DB_DUMP_FILE" } # FUNCTIONS